java.awt.Dialog

From an evolutionary perspective, dialogs lie between windows and frames. Dialogs share many of the amenities found in frames, but they lack the frame's status as being a fully operational application window. Dialogs cannot support menubars or be iconified, two essentials of application window functionality.

However, dialogs do have something that windows and frames do not—modality. Dialogs can be either modal or nonmodal, and before we go any further, let's define what that means. Being modal means blocking two things:

  • Thread execution

  • Input to other windows

When a modal dialog is shown, input is blocked to all other windows in the dialog's ancestry.[5] Also, execution of the thread that showed the dialog is blocked until the ...

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.