public class RuntimeUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RuntimeUtils.OSType
Enum of operating system types
|
Constructor and Description |
---|
RuntimeUtils() |
Modifier and Type | Method and Description |
---|---|
static RuntimeUtils.OSType |
detectOS()
Detect type of current OS
|
static java.lang.String |
getSystemInfo()
Get basic information about current system.
|
static boolean |
isAppleJava()
Checks whether the current Java implementation is Apple Java
|
static boolean |
isGnome3Desktop()
Check whether current desktop environment is Gnome 3.x
|
static boolean |
isGnomeDesktop()
Check whether current desktop environment is Gnome
|
static boolean |
isKDEDesktop()
Check whether current desktop environment is KDE
|
static boolean |
isLinux()
Check whether current OS is Linux
|
static boolean |
isMac()
Check whether current OS is Mac
|
static boolean |
isOpenJDK()
Checks whether the current Java implementation is OpenJDK
|
static boolean |
isOracleJava()
Checks whether the current Java implementation is Oracle Java
|
static boolean |
isRunAsWebStart()
Whether the program is run as Java WebStart or not
|
static boolean |
isSupportedJava()
Checks whether the current Java implementation is supported.
|
static boolean |
isWindows()
Check whether current OS is Windows
|
static void |
setDocumentModalDialog(javax.swing.JDialog dialog)
Set dialog to be document modal and set property so it will look as
native modal dialog on Mac (has no effect on other platforms).
|
static <T> T[] |
sortDialogOptions(T... options) |
static <T> T[] |
sortOptions(T... options) |
public static RuntimeUtils.OSType detectOS()
public static boolean isLinux()
public static boolean isMac()
public static boolean isWindows()
public static boolean isGnomeDesktop()
public static boolean isKDEDesktop()
public static boolean isGnome3Desktop()
public static boolean isOracleJava()
public static boolean isOpenJDK()
public static boolean isAppleJava()
public static boolean isSupportedJava()
public static boolean isRunAsWebStart()
public static java.lang.String getSystemInfo()
public static <T> T[] sortDialogOptions(T... options)
public static <T> T[] sortOptions(T... options)
public static void setDocumentModalDialog(javax.swing.JDialog dialog)
dialog
- dialog which should be document modal and Mac native
looking (only on Mac)