public class PtGUIUtilities
extends java.lang.Object
Red (cxh) |
Red (cxh) |
Modifier and Type | Method and Description |
---|---|
static boolean |
macOSLookAndFeel()
Return true if we are running under MacOS look and feel or
if the ptolemy.ptII.MacOS property is defined.
|
static boolean |
useFileDialog()
Return true if java.awt.FileDialog should be used instead of
javax.swing.JFileChooser.
|
public static boolean macOSLookAndFeel()
export JAVAFLAGS=-Dptolemy.ptII.MacOS=true $PTII/bin/vergilIf the ptolemy.ptII.MacOS property is set to true, this method prints the message "ptolemy.ptII.MacOS = true property detected".
public static boolean useFileDialog()
If the ptolemy.ptII.useFileDialog property is set to "true", then return true. If the ptolemy.ptII.useFileDialog property is set to any other value, return false. If the ptolemy.ptII.useFileDialog property is not set, then return the value of #macOSLookAndFeel().
To define ptolemy.ptII.useFileDialog, invoke Vergil with java -Dptolemy.ptII.useFileDialog=true -classpath $PTII ptolemy.vergil.VergilApplication Or, under Cygwin or bash:
export JAVAFLAGS=-Dptolemy.ptII.useFileDialog=true $PTII/bin/vergil