public class SystemUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
HAS_MODERN_RASTERIZER
True since Java 6 update 10.
|
static boolean |
IS_JAVA_6
True if this is Java 6.
|
static boolean |
IS_JAVA_7
True if this is Java 7.
|
static boolean |
IS_JAVA_7_OR_LATER
True if this is Java 7.x or later.
|
static boolean |
IS_JAVA_8
True if this is Java 7.
|
static boolean |
IS_JAVA_8_OR_LATER
True if this is Java 8.x or later.
|
static boolean |
IS_LAF_WINDOWS_XP_ENABLED
True if the Windows XP Look&Feel is enabled.
|
static boolean |
IS_LOW_RESOLUTION
Is true if this environment's default toolkit reports a screen resolutio
below 120 dpi.
|
static boolean |
IS_OS_LINUX
Is true if this is Linux.
|
static boolean |
IS_OS_MAC
True if this is the Mac OS.
|
static boolean |
IS_OS_SOLARIS
True if this is Solaris.
|
static boolean |
IS_OS_WINDOWS
True if this is Windows.
|
static boolean |
IS_OS_WINDOWS_2000
True if this is Windows 2000.
|
static boolean |
IS_OS_WINDOWS_6_OR_LATER
True if this is one of
Windows Vista
Windows Server 2008
Windows Server 2008 R2
Windows 7
Windows Server 2012
Windows 8
Windows Server 2012 R2
Windows 8.1
|
static boolean |
IS_OS_WINDOWS_7
True if this is Windows 7.
|
static boolean |
IS_OS_WINDOWS_8
True if this is Windows 8 or Windows Server 2012.
|
static boolean |
IS_OS_WINDOWS_98
True if this is Windows 98.
|
static boolean |
IS_OS_WINDOWS_ME
True if this is Windows ME.
|
static boolean |
IS_OS_WINDOWS_VISTA
True if this is Windows Vista or Server 2008.
|
static boolean |
IS_OS_WINDOWS_XP
True if this is Windows XP.
|
static boolean |
IS_OS_WINDOWS_XP_64_BIT_OR_SERVER_2003
True if this is Windows XP 64-Bit edition or Windows Server 200
or Windows Server 2003 R2.
|
protected static String |
JAVA_VERSION
The
os.name System Property. |
protected static String |
OS_NAME
The
os.name System Property. |
protected static String |
OS_VERSION
The
os.version System Property. |
| Modifier | Constructor and Description |
|---|---|
protected |
SystemUtils() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
getSystemProperty(String key)
Tries to look up the System property for the given key.
|
static boolean |
isLafAqua()
Checks and answers whether an Aqua look&feel is active.
|
protected static boolean |
startsWith(String str,
String prefix) |
protected static final String OS_NAME
os.name System Property. Operating system name.null, if the runtime does not have securit access to read this property or the property does not exist.
protected static final String OS_VERSION
os.version System Property. Operating system version.null, if the runtime does not have securit access to read this property or the property does not exist.
protected static final String JAVA_VERSION
os.name System Property. Operating system name.null, if the runtime does not have securit access to read this property or the property does not exist.
public static final boolean IS_OS_LINUX
public static final boolean IS_OS_MAC
public static final boolean IS_OS_SOLARIS
public static final boolean IS_OS_WINDOWS
public static final boolean IS_OS_WINDOWS_98
public static final boolean IS_OS_WINDOWS_ME
public static final boolean IS_OS_WINDOWS_2000
public static final boolean IS_OS_WINDOWS_XP
public static final boolean IS_OS_WINDOWS_XP_64_BIT_OR_SERVER_2003
public static final boolean IS_OS_WINDOWS_VISTA
public static final boolean IS_OS_WINDOWS_7
public static final boolean IS_OS_WINDOWS_8
public static final boolean IS_OS_WINDOWS_6_OR_LATER
public static final boolean IS_JAVA_6
public static final boolean IS_JAVA_7
public static final boolean IS_JAVA_7_OR_LATER
public static final boolean IS_JAVA_8
public static final boolean IS_JAVA_8_OR_LATER
public static final boolean HAS_MODERN_RASTERIZER
public static final boolean IS_LAF_WINDOWS_XP_ENABLED
public static final boolean IS_LOW_RESOLUTION
public static boolean isLafAqua()
true if the current look&feel is Aqua-likeprotected static String getSystemProperty(String key)
key - the name of the system propertynull if there'
no such value, or an empty String whe
a SecurityException has been caughtCopyright © 2009-2014 JGoodies Software GmbH. All Rights Reserved.