Toolkit: getProperty(String key, String def)
/*
* Output:
AWT.control = Ctrl
*/
import java.awt.Toolkit;
public class MainClass {
public static void main(String[] args) {
Toolkit tk = Toolkit.getDefaultToolkit();
System.out.println("AWT.control = " + tk.getProperty("AWT.control", ""));
}
}
Related examples in the same category