+ public boolean isHeadless()\r
+ {\r
+ String hdls = java.lang.System.getProperty("java.awt.headless");\r
+\r
+ return hdls != null && hdls.equals("true");\r
+ }\r
+\r
+ /**\r
+ * \r
+ * @return nominal maximum command line length for this platform\r
+ */\r
+ public static int getMaxCommandLineLength()\r
+ {\r
+ // TODO: determine nominal limits for most platforms.\r
+ return 2046; // this is the max length for a windows NT system.\r
+ }\r