Inheritance diagram for AppletErrorStreamArea::

Public Methods | |
| AppletErrorStreamArea (JTextArea area) | |
Protected Methods | |
| void | initGuiErrorStream () | 
| void | doPrint (final String str) | 
| void | doPrintln (final String str) | 
| void | doClear () | 
      
  | 
  
| 
 
 
 00021 {
00022     super(null,10,10,true);
00023     _text = area;
00024 }
 | 
  
      
  | 
  
| 
 
 Reimplemented from ErrorStreamArea. 
 00027 {
00028 }
 | 
  
      
  | 
  
| 
 
 
 00031 {
00032     if(SwingUtilities.isEventDispatchThread())
00033         _text.append(str);
00034     else {
00035         Runnable doMessage = new Runnable() {
00036             public void run() { doPrint(str); }
00037         };
00038         SwingUtilities.invokeLater(doMessage);
00039     }
00040 }
 | 
  
      
  | 
  
| 
 
 
 00043 {
00044     if(SwingUtilities.isEventDispatchThread())
00045         _text.append(str + "\n");
00046     else {
00047         Runnable doMessage = new Runnable() {
00048             public void run() { doPrintln(str); }
00049         };
00050         SwingUtilities.invokeLater(doMessage);
00051     }
00052 }
 | 
  
      
  | 
  
| 
 
 Reimplemented from ErrorStreamArea. 
 00055 {
00056     if(SwingUtilities.isEventDispatchThread())
00057         _text.setText("");
00058     else {
00059         Runnable doMessage = new Runnable() {
00060             public void run() { doClear(); }
00061         };
00062         SwingUtilities.invokeLater(doMessage);
00063     }
00064 }
 | 
  
1.2.12 written by Dimitri van Heesch,
 © 1997-2001