Toolkit: getSystemEventQueue()
/* * Output: System event queue = java.awt.EventQueue@e5855a */ import java.awt.Toolkit; public class MainClass { public static void main(String[] args) { Toolkit tk = Toolkit.getDefaultToolkit(); System.out.println("System event queue = " + tk.getSystemEventQueue()); } }