Toolkit.getSystemEventQueue() has the following syntax.
public final EventQueue getSystemEventQueue()
In the following code shows how to use Toolkit.getSystemEventQueue() method.
/*from www . jav a2 s . com*/ 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.