United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6338269 Regression: NPE with JOptionPane.getRootFrame()
JDK-6338269 : Regression: NPE with JOptionPane.getRootFrame()

Details
Type:
Bug
Submit Date:
2005-10-18
Status:
Resolved
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2005-10-31
Component:
client-libs
OS:
generic,windows_xp
Sub-Component:
javax.swing
CPU:
x86,generic
Priority:
P1
Resolution:
Fixed
Affected Versions:
5.0u5,6
Fixed Versions:

Related Reports
Duplicate:
Relates:

Sub Tasks

Description
As reported in 
http://forums.java.net/jive/thread.jspa?threadID=1439&messageID=24570#24570

Intellij IDEA trows NPE from build 47, it is regression of the fix for 6300062.
JOptionPane.getRootFrame() starts to return null which leads to NPE

Expected behaviour:
JOptionPane.getRootFrame() should return shared owner frame as it used to.

                                    

Comments
EVALUATION

We need to return the old functionality and partly roll back the fix for 6300062.
To support the new modality API we need to introduce new constructors for JDialog and JWindow which can true parent-less windows and dialogs
                                     
2005-10-18



Hardware and Software, Engineered to Work Together