Chapter 16. Windows, Frames, and Dialogs

The AWT provides three components that display a window on screen: Window, Frame, and Dialog.[1] While all three components are windows, the differences between the three are not always readily apparent, and therefore it can sometimes be difficult to decide which component to use in a given situation. To clarify, As a result, we have summarized the properties of the three components in Table 16-1.

[1] There's also FileDialog, which we will discuss later on.

Table 16-1. Window, Frame, and Dialog Properties[1][2]
Property Window Frame Dialog
Modal No No No/CSG
Resizable

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.