org.mythsim.swing
Class Console
java.lang.Object
|
+--java.awt.event.WindowAdapter
|
+--org.mythsim.swing.Console
- All Implemented Interfaces:
- ActionListener, EventListener, Runnable, WindowFocusListener, WindowListener, WindowStateListener
- public class Console
- extends WindowAdapter
- implements WindowListener, ActionListener, Runnable
A simple Java Console for your application (Swing version)
Requires Java 1.1.5 or higher
Disclaimer the use of this source is at your own risk.
Permision to use and distribute into your own applications
RJHM van den Bergh , rvdb@comweb.nl
http://alpha.comweb.nl/java/Console/Console.html
Modified to work with JTextPanel
|
Constructor Summary |
Console(org.mythsim.swing.MainJFrame f)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Console
public Console(org.mythsim.swing.MainJFrame f)
windowClosed
public void windowClosed(WindowEvent evt)
- Specified by:
windowClosed in interface WindowListener- Overrides:
windowClosed in class WindowAdapter
windowClosing
public void windowClosing(WindowEvent evt)
- Specified by:
windowClosing in interface WindowListener- Overrides:
windowClosing in class WindowAdapter
actionPerformed
public void actionPerformed(ActionEvent evt)
- Specified by:
actionPerformed in interface ActionListener
run
public void run()
- Specified by:
run in interface Runnable
readLine
public String readLine(PipedInputStream in)
throws IOException
IOException
main
public static void main(String[] arg)
Copyright © 2002-2004 Jason Vroustouris. All Rights Reserved.