}
else
{
+ // BH 2019.08.26 cannot pass null
System.setSecurityManager(null);
}
|| "true".equals(System.getProperty("java.awt.headless")))
{
headless = true;
+
+ System.out.println("Headless operation detected.");
+
}
// anything else!
try
{
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+ UIManager.setLookAndFeel(
+ headless ? "javax.swing.plaf.metal.MetalLookAndFeel"
+ : UIManager.getSystemLookAndFeelClassName());
} catch (Exception ex)
{
System.err.println("Unexpected Look and Feel Exception");
{
if (!(new File(file)).exists())
{
- System.out.println("Can't find " + file);
+ System.out.println(
+ "Can't find " + new File(file).getAbsolutePath());
if (headless)
{
System.exit(1);
if (aparser.contains(ArgsParser.SHOWOVERVIEW))
{
- af.overviewMenuItem_actionPerformed(null);
+ if (!headless)
+ {
+ af.overviewMenuItem_actionPerformed(null);
+ }
System.out.println("CMD [showoverview] executed successfully!");
}