diff options
Diffstat (limited to 'toolkit/test/accessibility/EventLogger.java')
-rw-r--r-- | toolkit/test/accessibility/EventLogger.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/toolkit/test/accessibility/EventLogger.java b/toolkit/test/accessibility/EventLogger.java new file mode 100644 index 000000000000..de0b8e6aee9d --- /dev/null +++ b/toolkit/test/accessibility/EventLogger.java @@ -0,0 +1,31 @@ +import javax.swing.JFrame; +import javax.swing.JScrollPane; + +class EventLogger +{ + public static synchronized EventLogger Instance () + { + if (maInstance == null) + maInstance = new EventLogger(); + return maInstance; + } + + private EventLogger () + { + try + { + maFrame = new JFrame (); + maLogger = new TextLogger (); + maFrame.setContentPane (new JScrollPane (maLogger)); + + maFrame.setSize (400,300); + maFrame.setVisible (true); + } + catch (Exception e) + {} + } + + private static EventLogger maInstance = null; + private JFrame maFrame; + private TextLogger maLogger; +} |