Changeset 308 for trunk/JFCMonitor/src/de/ugoe/cs/eventbench
- Timestamp:
- 12/13/11 16:51:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor/Runner.java
r303 r308 7 7 import java.io.IOException; 8 8 import java.io.OutputStreamWriter; 9 import java.io.UnsupportedEncodingException; 9 10 import java.util.Arrays; 10 11 … … 64 65 65 66 if (stdOutputWrite) { 66 AWTEventListener listenerStdOut = new JFCListener( 67 new OutputStreamWriter(System.out)); 68 Toolkit.getDefaultToolkit().addAWTEventListener(listenerStdOut, 69 AWTEvent.KEY_EVENT_MASK); 70 Toolkit.getDefaultToolkit().addAWTEventListener(listenerStdOut, 71 AWTEvent.MOUSE_EVENT_MASK); 67 AWTEventListener listenerStdOut; 68 try { 69 listenerStdOut = new JFCListener(new OutputStreamWriter( 70 System.out, "UTF-8")); 71 Toolkit.getDefaultToolkit().addAWTEventListener(listenerStdOut, 72 AWTEvent.KEY_EVENT_MASK); 73 Toolkit.getDefaultToolkit().addAWTEventListener(listenerStdOut, 74 AWTEvent.MOUSE_EVENT_MASK); 75 } catch (UnsupportedEncodingException e) { 76 System.err 77 .println("JFCMONITOR -- failure to create OutputStreamWriter with UTF-8 encoding to System.out"); 78 } 72 79 } 73 80
Note: See TracChangeset
for help on using the changeset viewer.