desktop = null;
- // property laf = "crossplatform", "system", "gtk", "metal" or "mac"
+ // property laf = "crossplatform", "system", "gtk", "metal", "nimbus" or
+ // "mac"
// If not set (or chosen laf fails), use the normal SystemLaF and if on Mac,
// try Quaqua/Vaqua.
String lafProp = System.getProperty("laf");
lafSet = setCrossPlatformLookAndFeel();
if (!lafSet)
{
- System.err.println("Could not set requested laf=" + laf);
+ Cache.log.error("Could not set requested laf=" + laf);
}
break;
case "system":
lafSet = setSystemLookAndFeel();
if (!lafSet)
{
- System.err.println("Could not set requested laf=" + laf);
+ Cache.log.error("Could not set requested laf=" + laf);
}
break;
case "gtk":
lafSet = setGtkLookAndFeel();
{
- System.err.println("Could not set requested laf=" + laf);
+ Cache.log.error("Could not set requested laf=" + laf);
}
break;
case "metal":
lafSet = setMetalLookAndFeel();
{
- System.err.println("Could not set requested laf=" + laf);
+ Cache.log.error("Could not set requested laf=" + laf);
}
break;
case "nimbus":
lafSet = setNimbusLookAndFeel();
{
- System.err.println("Could not set requested laf=" + laf);
+ Cache.log.error("Could not set requested laf=" + laf);
}
break;
case "quaqua":
lafSet = setQuaquaLookAndFeel();
{
- System.err.println("Could not set requested laf=" + laf);
+ Cache.log.error("Could not set requested laf=" + laf);
}
break;
case "vaqua":
lafSet = setVaquaLookAndFeel();
{
- System.err.println("Could not set requested laf=" + laf);
+ Cache.log.error("Could not set requested laf=" + laf);
}
break;
case "mac":
lafSet = setMacLookAndFeel();
if (!lafSet)
{
- System.err.println("Could not set requested laf=" + laf);
+ Cache.log.error("Could not set requested laf=" + laf);
}
break;
case "none":
break;
default:
- System.err.println("Requested laf=" + laf + " not implemented");
+ Cache.log.error("Requested laf=" + laf + " not implemented");
}
if (!lafSet)
{
setSystemLookAndFeel();
- if (Platform.isLinux()) {
+ if (Platform.isLinux())
+ {
setMetalLookAndFeel();
}
if (Platform.isAMac())
JalviewTaskbar.setTaskbar(this);
} catch (Exception e)
{
- System.out.println("Cannot set Taskbar");
+ Cache.log.info("Cannot set Taskbar");
+ Cache.log.error(e.getMessage());
// e.printStackTrace();
} catch (Throwable t)
{
- System.out.println("Cannot set Taskbar");
+ Cache.log.info("Cannot set Taskbar");
+ Cache.log.error(t.getMessage());
// t.printStackTrace();
}