Changeset 370 for trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor
- Timestamp:
- 01/30/12 13:36:37 (13 years ago)
- Location:
- trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor/JFCListener.java
r356 r370 4 4 import java.awt.Component; 5 5 import java.awt.event.AWTEventListener; 6 import java.awt.event.FocusEvent; 6 7 import java.awt.event.KeyEvent; 7 8 import java.awt.event.MouseEvent; … … 90 91 } 91 92 } 93 if (event instanceof FocusEvent) { 94 FocusEvent focusEvent = (FocusEvent) event; 95 if( focusEvent.getID() == FocusEvent.FOCUS_GAINED ) { 96 builder.append("<event id=\"" + event.getID() + "\">" + StringTools.ENDLINE); 97 addSourceInfo(builder, event); 98 builder.append("</event>" + StringTools.ENDLINE); 99 } 100 } 92 101 if (builder.length() > 0 && outputWriter != null) { 93 102 try { -
trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor/Runner.java
r355 r370 4 4 import java.awt.Toolkit; 5 5 import java.awt.event.AWTEventListener; 6 import java.awt.event.FocusEvent; 6 7 import java.io.FileOutputStream; 7 8 import java.io.IOException; … … 63 64 Toolkit.getDefaultToolkit().addAWTEventListener(listenerFile, 64 65 AWTEvent.MOUSE_EVENT_MASK); 66 Toolkit.getDefaultToolkit().addAWTEventListener(listenerFile, 67 FocusEvent.FOCUS_EVENT_MASK); 65 68 Toolkit.getDefaultToolkit().addAWTEventListener(new WindowMonitor(), 66 69 AWTEvent.WINDOW_EVENT_MASK);
Note: See TracChangeset
for help on using the changeset viewer.