Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

dtk.gui
Class TKLog  view TKLog download TKLog.java

java.lang.Object
  extended bydtk.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()
           
 
Method Summary
static void error(java.lang.String s)
          Pops up an error message with the word "Error" inserted at the beginning in a "OK" window.
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.
static void logFile(java.lang.String s)
          Prints the given message to standard output with the word "Log" inserted at the beginning.
static void okMsg(java.lang.String s)
          Pops up a message in a "OK" window.
static void okMsg(java.lang.String s, java.awt.Component c)
          Pops up a message in a "OK" window centered around a Component.
static void println(java.lang.String s)
          Prints the given message to standard output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

print

static boolean print
Constructor Detail

TKLog

public TKLog()
Method Detail

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.