Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Bug Report: Export window in OWLViz does not open on JDK 1.6

Holger Stenzhorn holger.stenzhorn at ifomis.uni-saarland.de
Mon Sep 18 11:11:00 PDT 2006


Using: Protégé version 3.2 beta build 339
       Protégé-OWL version 2.2 beta build 339
       JDK 1.6 RC build 99

Problem: When I click on the export icon in OWLViz the export window does not open under JDK 1.6 (but on JDK 1.5)

Solution: In the class "uk.ac.man.cs.mig.util.wizard.Wizard" one can find the line (110) "setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE);".
But JDialog (from which WizardDialog inherits) allows only "DO_NOTHING_ON_CLOSE", "HIDE_ON_CLOSE" or "DISPOSE_ON_CLOSE" for "setDefaultCloseOperation(x)".
Before JDK 1.6 this has obviously not been inforced since the window opens flawlessly under JDK 1.5.
So if this line is changed to "setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);" then everything works nicely again.

The same applies for:
- protege-script-console - script.BSFScriptConsoleFrame - line 95

Only in the test main method at classes (so not so important)...
- incubator - org.protege.core.ui.preferences.PreferencesPanelLayoutManager - line 2481
- incubator - org.protege.core.ui.util.FilePathPanel - line 2385
- incubator - org.protege.core.ui.util.FileURIPanel - line 1906
- incubator - org.protege.core.ui.util.LinkLabel - line 2275
- owl - edu.stanford.smi.protegex.owl.ui.properties.OWLPropertyHierarchiesPanel - line 1682

P.S.: The same bug I have found some time ago in "uk.ac.man.cs.mig.coode.protege.wizard.wizard.WizardDialog" and reported: It got fixed as proposed above and it works.




More information about the protege-owl mailing list