Java Toolkit.getProperty(String key, String defaultValue)
Syntax
Toolkit.getProperty(String key, String defaultValue) has the following syntax.
public static String getProperty(String key, String defaultValue)
Example
In the following code shows how to use Toolkit.getProperty(String key, String defaultValue) method.
import java.awt.Toolkit;
//from w w w . ja va 2 s. c om
public class Main {
public static void main(String[] args) {
Toolkit tk = Toolkit.getDefaultToolkit();
System.out.println("AWT.control = " + tk.getProperty("AWT.control", ""));
}
}
The code above generates the following result.
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »