|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutil.Console
public class Console
From the book: "Thinking in Java" by Bruce Eckel, Prentice Hall, 3rd edition, 2003. He develops his own "wrapper classes" which allow the applet to run standalone or as an applet/servlet. This file implements his framework.
| Constructor Summary | |
|---|---|
Console()
|
|
| Method Summary | |
|---|---|
static void |
run(javax.swing.JApplet applet,
int width,
int height)
Activate the applet the given size. |
static void |
run(javax.swing.JFrame frame,
int width,
int height)
Activate the frame the given size. |
static void |
run(javax.swing.JPanel panel,
int width,
int height)
Activate the panel the given size. |
static java.lang.String |
title(java.lang.Object obj)
Create the title string from the class name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Console()
| Method Detail |
|---|
public static java.lang.String title(java.lang.Object obj)
obj - the object whose class name is to be extracted and returned.
public static void run(javax.swing.JFrame frame,
int width,
int height)
frame - the frame to be activated.width - the window width to use.height - the window height to use.
public static void run(javax.swing.JApplet applet,
int width,
int height)
applet - the applet to be activated.width - the window width to use.height - the window height to use.
public static void run(javax.swing.JPanel panel,
int width,
int height)
panel - the panel to be activated.width - the window width to use.height - the window height to use.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||