>>433
java.awt.GraphicsEnvironment.isHeadless()