Java Toolkit.getDefaultToolkit()
Syntax
Toolkit.getDefaultToolkit() has the following syntax.
public static Toolkit getDefaultToolkit()
Example
In the following code shows how to use Toolkit.getDefaultToolkit() method.
/*from w w w . j ava 2s. c om*/
import java.awt.Toolkit;
public class Main {
public static void main(String[] args) {
Toolkit tk = Toolkit.getDefaultToolkit();
tk.beep();
}
}
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »