boolean () { String geClassName = GraphicsEnvironment.getLocalGraphicsEnvironment().getClass().getSimpleName(); return geClassName.equals("PGraphicsEnvironment") || geClassName.equals("IdeGraphicsEnvironment"); }