Java Toolkit.getSystemEventQueue()
Syntax
Toolkit.getSystemEventQueue() has the following syntax.
public final EventQueue getSystemEventQueue()
Example
In the following code shows how to use Toolkit.getSystemEventQueue() method.
// w ww .j av a2 s . c o m
import java.awt.Toolkit;
public class Main {
public static void main(String[] args) {
Toolkit tk = Toolkit.getDefaultToolkit();
System.out.println("System event queue = " + tk.getSystemEventQueue());
}
}
The code above generates the following result.
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »