|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkrut.KRUT_GUI.OutputText
public class OutputText
This class is a very simple output window. The out() method is used to print lines of text.
Field Summary | |
---|---|
boolean |
inited
true if the output window is initiated, false if not. |
javax.swing.JFrame |
outFrame
The frame for this window. |
javax.swing.JTextArea |
output
The text area where the output is printed. |
Constructor Summary | |
---|---|
OutputText()
|
Method Summary | |
---|---|
void |
hold()
Can be used to wait for this class to be ready to accept output. |
void |
init(int xPos,
int yPos)
Initiate the output window. |
void |
out(java.lang.String outString)
Prints a line in the output window. |
void |
wakeUp()
Wakes up users waiting for the OutputText to finish initializing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public javax.swing.JTextArea output
public javax.swing.JFrame outFrame
public boolean inited
Constructor Detail |
---|
public OutputText()
Method Detail |
---|
public void hold()
public void wakeUp()
public void out(java.lang.String outString)
outString
- A string containg the line to be printed.public void init(int xPos, int yPos)
xPos
- The x position on the screen where
the window should appear.yPos
- The y position on the screen where
the window should appear.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |