util
Class TextAreaWindow
java.lang.Object
|
+--util.TextAreaWindow
- All Implemented Interfaces:
- ActionListener, EventListener
- public class TextAreaWindow
- extends Object
- implements ActionListener
Wrap input of process into a text window to seperate it from the
rest of the world.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_HEIGHT
public static final int DEFAULT_HEIGHT
DEFAULT_WIDTH
public static final int DEFAULT_WIDTH
messageCount
protected int messageCount
maxSize
protected int maxSize
packet
protected LauncherPacket packet
launcher
protected LauncherDemon launcher
autoScrolling
protected boolean autoScrolling
- Indicates if the window should automatically scroll to the bottom
as new lines of text arrive
TextAreaWindow
public TextAreaWindow(LauncherDemon launcher,
Process proc,
LauncherPacket packet)
TextAreaWindow
public TextAreaWindow(LauncherDemon launcher,
Process proc,
LauncherPacket packet,
int maxSize)
setLocation
public void setLocation(Point p)
setupFrame
public void setupFrame()
actionPerformed
public void actionPerformed(ActionEvent ev)
- Specified by:
actionPerformed
in interface ActionListener
updateDisplay
protected void updateDisplay(String text)
- Updates the display with a new line of text; if necessary, it
will forget some of the older messages
addIn
public void addIn(InputStream os)
main
public static void main(String[] args)