Simulate the event handling mechanism of JDK AWT