|Creating an Applet User Interface|
To find out about the current working environment, applets can read system properties. System properties are key/value pairs that contain information such as the operating system that the applet is running under. System properties are covered in detail in the System Properties page.
Applets can read some, but not all, system properties. This page lists the system properties that Netscape Navigator 2.0 and the Applet Viewer allow applets to read, followed by a list of properties that applets can't read.
System Properties that Applets Can ReadApplets can read the following system properties:
File separator (for example, "/")
Java class version number
Java vendor-specific string
Java vendor URL
Java version number
Operating system architecture
Operating system name
Path separator (for example, ":")
To read a system property from within an applet, the applet uses the
getProperty. For example:String s = System.getProperty("os.name");
Forbidden System PropertiesFor security reasons, no existing browsers or applet viewers let applets read the following system properties.
Java installation directory
User's current working directory
User home directory
User account name
Creating an Applet User Interface