Sun JDK 1.5 has a focus problem that cripples Oxygen-XML
Posted: Mon May 09, 2005 9:11 pm
I am running Oxygen-XML under Windows XP using the latest Sun JRE 1.5 (update 3). I think there is a major bug in the Sun 1.5 JRE that can make using Java desktop applications unusable.
To demonstrate, make sure that Sun JDK 1.5 is your default JRE, and then start Oxygen-XML. Open an XML file into the editor. Press the "Configure Transformation Scenario" button. The "Configure Transformation Scenario" dialog box appears. Press the "New" button. The "Edit scenario" dialog box appears. Press the appropriate picture button to "browse for a local input XML file". The standard file chooser dialog box appears. Select your XSL file and press the "Open" button. The file chooser dialog box goes away and the fully-qualified path to the XSL file that you selected will appear in the text box labeled "XML URL:".
Here lies the problem: window focus does NOT get returned to the "Edit scenario" dialog box as it should. There is no way that I can find to manually return focus to the dialog box. Because it is a modal dialog box, the whole application becomes unresponsive. The user has no choice but to have the operating system forcefully terminate the application. There is no manual workaround for this as I see it.
I do not believe this to be a bug in Oxygen-XML -- I believe it to be a serious flaw in the Sun JDK 1.5. As far as I can tell, the Sun JDK 1.4.2 does NOT have this flaw.
Just thought I would bring this to everyone's attention. Until Sun fixes this flaw, Java desktop applications running under JDK 1.5 are vulnerable to this broken window focus bug and the complications that result from it.
To demonstrate, make sure that Sun JDK 1.5 is your default JRE, and then start Oxygen-XML. Open an XML file into the editor. Press the "Configure Transformation Scenario" button. The "Configure Transformation Scenario" dialog box appears. Press the "New" button. The "Edit scenario" dialog box appears. Press the appropriate picture button to "browse for a local input XML file". The standard file chooser dialog box appears. Select your XSL file and press the "Open" button. The file chooser dialog box goes away and the fully-qualified path to the XSL file that you selected will appear in the text box labeled "XML URL:".
Here lies the problem: window focus does NOT get returned to the "Edit scenario" dialog box as it should. There is no way that I can find to manually return focus to the dialog box. Because it is a modal dialog box, the whole application becomes unresponsive. The user has no choice but to have the operating system forcefully terminate the application. There is no manual workaround for this as I see it.
I do not believe this to be a bug in Oxygen-XML -- I believe it to be a serious flaw in the Sun JDK 1.5. As far as I can tell, the Sun JDK 1.4.2 does NOT have this flaw.
Just thought I would bring this to everyone's attention. Until Sun fixes this flaw, Java desktop applications running under JDK 1.5 are vulnerable to this broken window focus bug and the complications that result from it.