public class Console
extends java.lang.Object
implements java.util.Observer
| Modifier and Type | Method and Description |
|---|---|
static Console |
getInstance()
Console is a Singleton class: you can only get one Console.
|
java.io.PrintStream |
getPrintStream()
Get the custom PrintStream of the console.
|
javax.swing.JTextPane |
getTextArea()
Get the JTextArea to which everything is written.
|
static void |
println(java.lang.String s)
Allows you to print something to the custom PrintStream.
|
void |
update(java.util.Observable observable,
java.lang.Object obj) |
public static Console getInstance()
public void update(java.util.Observable observable,
java.lang.Object obj)
update in interface java.util.ObserverObserver.update(java.util.Observable, java.lang.Object)public static void println(java.lang.String s)
s - the message you want to send to the Consolepublic java.io.PrintStream getPrintStream()
public javax.swing.JTextPane getTextArea()
Copyright © 2017. All Rights Reserved.