public class OperatingSystem
extends java.lang.Object
Constructor and Description |
---|
OperatingSystem() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Rectangle |
getScreenBounds()
Returns the bounds of the default screen.
|
static java.awt.Rectangle |
getScreenBounds(java.awt.Rectangle window)
Returns the bounds of the (virtual) screen that the window should be in
|
static boolean |
hasJava17()
Deprecated.
- there is no point in checking for this
since we require Java 1.8.
Returns if Java 2 version 1.7 is in use.
|
static boolean |
hasScreenMenuBar()
Returns whether the screen menu bar on Mac OS X is in use.
|
static boolean |
isCaseInsensitiveFS() |
static boolean |
isDOSDerived()
Deprecated.
use
isWindows() |
static boolean |
isMacOS()
Returns if we're running MacOS X.
|
static boolean |
isMacOSLF()
Returns if we're running MacOS X and using the native look and feel.
|
static boolean |
isOS2()
Returns if we're running OS/2.
|
static boolean |
isUnix()
Returns if we're running Unix (this includes MacOS X).
|
static boolean |
isVMS()
Returns if we're running VMS.
|
static boolean |
isWindows()
Returns if we're running Windows 95/98/ME/NT/2000/XP/Vista/Win7.
|
static boolean |
isWindows9x()
Returns if we're running Windows 95/98/ME.
|
static boolean |
isWindowsNT()
Returns if we're running Windows NT/2000/XP/Vista/Win7.
|
static boolean |
isX11()
Returns if this OS is likely to be using X11 as the graphics
system.
|
public static java.awt.Rectangle getScreenBounds()
public static java.awt.Rectangle getScreenBounds(java.awt.Rectangle window)
window
- The bounds of the window to get the screen for@Deprecated public static boolean isDOSDerived()
isWindows()
public static boolean isWindows()
public static boolean isWindows9x()
public static boolean isWindowsNT()
public static boolean isOS2()
public static boolean isUnix()
public static boolean isMacOS()
public static boolean isX11()
public static boolean isVMS()
public static boolean isMacOSLF()
public static boolean hasScreenMenuBar()
@Deprecated public static boolean hasJava17()
public static boolean isCaseInsensitiveFS()