*/
public class Platform
{
+
private static Boolean isAMac = null, isWindows = null;
private static Boolean isHeadless = null;
/**
* sorry folks - Macs really are different
*
+ * BH: disabled for SwingJS -- will need to check key-press issues
+ *
* @return true if we do things in a special way.
*/
public static boolean isAMac()
{
if (isAMac == null)
{
- isAMac = System.getProperty("os.name").indexOf("Mac") > -1;
+ isAMac = /** @j2sNative false && */
+ System.getProperty("os.name").indexOf("Mac") > -1;
}
return isAMac.booleanValue();
{
if (isWindows == null)
{
- isWindows = System.getProperty("os.name").indexOf("Win") > -1;
+ isWindows = /** @j2sNative false && */
+ System.getProperty("os.name").indexOf("Win") > -1;
}
return isWindows.booleanValue();
}