How do I create a single listener that will be informed of every button press (for starters).
I looked at AWTEventListener with the mask ACTION_EVENT_MASK but I didn't receive any events! I am attaching my listener code.
I am attempting to build my own debugger/tester as a learning experience and need to monitor all occurances of various events. I am just starting and the first event I am having trouble with is action events. I have been able to determine whenever a button gets added using ContainerEvents so I could just register myself as a listener but I want to know why I can't get the existing listener to work!
final AWTEventListener eventMonitor = new AWTEventListener()
public void eventDispatched(AWTEvent e)
System.out.println("EM = " + e);