public class OSInfo
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
OSInfo.OSType |
Modifier and Type | Field and Description |
---|---|
private static OSInfo.OSType |
osType |
private static long |
serialVersionUID |
Constructor and Description |
---|
OSInfo() |
Modifier and Type | Method and Description |
---|---|
static void |
applyNativeLookAndFeel()
Check the OS to see if it's a Mac, and if it is, set a few system
properties to make things more "Mac-like."
|
static java.io.File |
getDocumentsDir() |
static java.lang.String |
getDocumentsDirPath() |
static OSInfo.OSType |
getOSType() |
private static OSInfo.OSType |
getOSType(java.lang.String osName) |
static boolean |
isMac()
Get whether the current OS is a Mac.
|
static boolean |
isNix() |
static boolean |
isWin() |
static void |
useNativeMenus() |
private static final OSInfo.OSType osType
private static final long serialVersionUID
public static void applyNativeLookAndFeel()
public static java.io.File getDocumentsDir()
public static java.lang.String getDocumentsDirPath()
public static OSInfo.OSType getOSType()
private static OSInfo.OSType getOSType(java.lang.String osName)
public static boolean isMac()
public static boolean isNix()
public static boolean isWin()
public static void useNativeMenus()