INTEGRATION: CWS vcl07 (1.3.2); FILE ADDED
2003/04/08 14:28:42 obr 1.3.2.1: re-added accessibility workbench
This commit is contained in:
parent
aea8e37158
commit
81204d0800
1 changed files with 31 additions and 0 deletions
31
toolkit/test/accessibility/EventLogger.java
Normal file
31
toolkit/test/accessibility/EventLogger.java
Normal file
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue