public final class Configuration {
public enum UI {
- NATIVE, SYSTEM, NIMBUS, UNKNOWN
+ NATIVE, CROSSPLATFORM, NIMBUS, UNKNOWN
}
static final String VALIDATE_AGAINST_PHYLOXML_XSD_SCHEMA = "validate_against_phyloxml_xsd_schema";
private static final String WEB_LINK_KEY = "web_link";
}
final boolean isUseNativeUI() {
- if ( _ui == UI.UNKNOWN ) {
- if ( Util.isMac() && Util.isJava15() ) {
- _ui = UI.NATIVE;
- }
+ if ( ( _ui == UI.UNKNOWN ) && Util.isMac() && Util.isJava15() ) {
+ _ui = UI.NATIVE;
}
return _ui == UI.NATIVE;
}
_ui = UI.NATIVE;
}
else if ( my_str.equals( "no" ) || my_str.equals( "false" ) ) {
- _ui = UI.SYSTEM;
+ _ui = UI.CROSSPLATFORM;
}
else if ( my_str.equals( "?" ) ) {
_ui = UI.UNKNOWN;
}
try {
if ( _configuration.isUseNativeUI() ) {
- // UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
- UIManager.setLookAndFeel( "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel" );
+ UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
}
else {
UIManager.setLookAndFeel( UIManager.getCrossPlatformLookAndFeelClassName() );
}
+ //UIManager.setLookAndFeel( "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel" );
}
catch ( final UnsupportedLookAndFeelException e ) {
Util.dieWithSystemError( "UnsupportedLookAndFeelException: " + e.toString() );