Four new AWT modality models introduced with the Java Mustang release. : Modality « Swing « Java Tutorial






Modal TypeDescription
Mode-lessDoes not block any other window while it's rendered on the user display.
Document-modalBlocks all windows from the same document with the exception of those windows from its child hierarchy.
Application-modalBlocks all windows from the same application with the exception of those windows from its child hierarchy.
Toolkit-modalBlocks all windows from the same toolkit with the exception of those toolkits from its child hierarchy.










14.75.Modality
14.75.1.Four new AWT modality models introduced with the Java Mustang release.
14.75.2.Improved Dialog Modality
14.75.3.Dialog.ModalityType.DOCUMENT_MODAL
14.75.4.Modeless Dialog
14.75.5.Using modality exclusion
14.75.6.Demonstrating Modality Types