public class OperatingSystem extends Object
| Constructor and Description |
|---|
OperatingSystem() |
| Modifier and Type | Method and Description |
|---|---|
static void |
displayURL(String url)
From JavaWorld Tip 66 -
http://www.javaworld.com/javaworld/javatips/jw-javatip66.html Display a
file in the system browser.
|
static int |
execute(String command) |
static Rectangle |
getScreenBounds() |
static boolean |
hasJava14()
Returns if Java 2 version 1.4 is in use.
|
static boolean |
isMacOS()
Returns if we're running MacOS X.
|
static boolean |
isUnix()
Returns if we're running Unix (this includes MacOS X).
|
static boolean |
isWindows()
Returns if we're running Windows 95/98/ME/NT/2000/XP.
|
public static final Rectangle getScreenBounds()
public static final boolean isWindows()
public static final boolean isUnix()
public static final boolean isMacOS()
public static final boolean hasJava14()
public static void displayURL(String url)
url - the file's url (the url must start with either "http://",
"https://","mailto:" or "file://").public static int execute(String command)
Copyright © 2018. All rights reserved.