O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required