United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6520635 isModalityTypeSupported is not handled correctly
JDK-6520635 : isModalityTypeSupported is not handled correctly

Details
Type:
Bug
Submit Date:
2007-02-02
Status:
Closed
Updated Date:
2012-08-29
Project Name:
JDK
Resolved Date:
2011-03-07
Component:
client-libs
OS:
solaris,generic
Sub-Component:
java.awt
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6,7
Fixed Versions:

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
Specification for Toolkit.isModalityTypeSupported() method contains the following statement:

     * If a dialog with unsupported modality type is created, then
     * <code>Dialog.ModalityType.MODELESS</code> is used instead.

However, currently this is not implemented. For example, if a dialog with DOCUMENT_MODAL modality type is created with MToolkit (which doesn't support this type of modality), this dialog still is modal.
A test that can be used to reproduce the bug is attached.

                                    

Comments
EVALUATION

A check isModalityTypeSupported should be added to the Dialog class. The same is for isModalExclusionTypeSupported.
                                     
2007-02-02



Hardware and Software, Engineered to Work Together