merge the formfield patch from ooo-build
[ooovba.git] / toolkit / test / accessibility / EventLogger.java
blobde0b8e6aee9d582b257b6aa6d34fb2ffca21c911
1 import javax.swing.JFrame;
2 import javax.swing.JScrollPane;
4 class EventLogger
6 public static synchronized EventLogger Instance ()
8 if (maInstance == null)
9 maInstance = new EventLogger();
10 return maInstance;
13 private EventLogger ()
15 try
17 maFrame = new JFrame ();
18 maLogger = new TextLogger ();
19 maFrame.setContentPane (new JScrollPane (maLogger));
21 maFrame.setSize (400,300);
22 maFrame.setVisible (true);
24 catch (Exception e)
28 private static EventLogger maInstance = null;
29 private JFrame maFrame;
30 private TextLogger maLogger;