java.lang.Object
dtk.gui.TKLog
- public class TKLog
- extends java.lang.Object
Creates a simple box to display messages to the user and
to log certain events for debugging purposes to standard out.
|
Field Summary |
(package private) static boolean |
print
|
|
Constructor Summary |
TKLog()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
print
static boolean print
TKLog
public TKLog()
println
public static void println(java.lang.String s)
- Prints the given message to standard output. Used for debugging.
Messages can be turned on and off by setting the boolean
print
logFile
public static void logFile(java.lang.String s)
- Prints the given message to standard output with the word "Log"
inserted at the beginning. Used for debugging.
Messages can be turned on and off by setting the boolean
print
okMsg
public static void okMsg(java.lang.String s,
java.awt.Component c)
- Pops up a message in a "OK" window centered around a Component.
okMsg
public static void okMsg(java.lang.String s)
- Pops up a message in a "OK" window.
The display is centered over the primary Toolkit Frame.
error
public static void error(java.lang.String s)
- Pops up an error message with the word "Error" inserted at the beginning in a "OK" window.
The display is centered over the primary Toolkit Frame.
error
public static void error(java.lang.String s,
java.awt.Component c)
- Pops up an error message with the word "Error" inserted at the beginning in a "OK" window.
The display is centered over the given Component.