I want to either display a message in the console or a pop up, so in case a parameter is not specified, I want to know to which should I display
Something like:
From http://java.itags.org/java-essentials/15972/
try { GraphicsEnvironment.getLocalGraphicsEnvironment(); } catch(Throwable ex) { System.out.println("No graphical environment is available."); }