Chapter 19. Lightweight Components

AWT components are heavyweight, meaning they have a native peer and are rendered in an opaque window of their own. Since a heavyweight component is rendered in its own opaque window, it must always be rectangular in shape; if you want a see-through component, a heavyweight won't cut the mustard. Also, as you might suspect, a 1:1 ratio of native window per AWT component is not exactly ideal from a performance ...

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.