public class Styled
extends java.lang.Object
The styled window does not allow input.
The methods of the Styled class are all static, so that the Styled.print and Styled.setBold(true) methods can be called from any point in the program.
The program must have created an UI window in order to use the styled facility, but there is no need to explicitly create a styled window or initialise the styled facility from inside the program.
Modifier and Type | Method and Description |
---|---|
static void |
setVisible(boolean v)
Make the styled window visible.
|
static void |
hide()
Hide the styled window.
|
static boolean |
isVisible()
Return true if and only if the styled window is currently visible.
|
static void |
pause() pause(String s)
If the trace window is visible, display a dialog box allowing the user to pause the program until they are ready to
proceed. The dialog box displays the argument, if provided.
|
static void |
print(boolean b) print(char c) print(double d) print(int i) print(String s) print(Object o) println() println(boolean b) println(char c) println(double d) println(int i) println(String s) println(Object o)
If the trace window is currently showing, print a value (any
type) into the trace window. The println version also starts
a new line. Does nothing if trace window is hidden.
|
static void |
printf(String format,
Object... args)
If the trace window is currently showing, prints a formatted
string into the Styled window, just like printf for UI or PrintStream.
|