[kepler-dev] [Bug 4112] - make kepler use OSX dialog boxes
bugzilla-daemon at ecoinformatics.org
bugzilla-daemon at ecoinformatics.org
Sat Aug 8 12:55:17 PDT 2009
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4112
------- Comment #4 from cxh at eecs.berkeley.edu 2009-08-08 12:55 -------
The easiest way to use java.awt.FileDialog for File =>Open etc. would be
to modify ptolemy.gui.Top. Modifyig ptolemy.gui.Query would solve the
problem for FileParameter. I'm not sure where to fix "Open Archive (KAR)".
See also
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3801
The way I'd fix this is to look at creating a class called PtFileDialog
that would work either on a JFileDialog or a java.awt.FileDialog depending
on whether ptolemy.gui.PtGUIUtilities.macOSXLookAndFeel returned true.
I'm not sure if it would be easy to write PtFileDialog.
One issue is that ptolemy.gui should not depend on Mac specific classes or
on anything other than ptolemy.util.
More information about the Kepler-dev
mailing list