Java™ SE 6 has resolved modality issues that arose in earlier versions of the platform. The modal dialog box captures the window focus until it is closed, usually in response . If the value for the owner is null, a shared, hidden frame will be set as the owner getModalityType, Returns the modality type for this dialog box..