Summary

Labels, buttons, canvases, and panels are the most basic components provided by the AWT. Labels and buttons both display a label; canvases and panels both provide a surface upon which to perform graphical operations. Out of the four components, panels are the only component which also doubles as a container that can contain other components.

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.