Eclipse & Java: is there an event monitoring feature?

When developing java guis (e.g. swing) in eclipse there is a built-in function (or plugin) that allows you to track all events that are fired?

+7
source share
2 answers

You can also write AWTEventListener yourself. Just add the following lines to your program.

 Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() { public void eventDispatched(AWTEvent event) { System.out.println(event); } }, -1); 

Replace the output with anything. You can also listen to certain events only by changing -1 to some constants from AWTEvent .

+3
source

There is something in eclipse, I'm not sure if this is exactly what you are looking for. it is called "Watch", it oversees everything that happens with this particular variable.

+1
source

All Articles