public abstract class AwtDemoCase extends GuiDemoCase
Constructor and Description |
---|
AwtDemoCase() |
AwtDemoCase(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected java.awt.Frame |
createFrame()
Convenience method for creating a new
Frame object that can be used for demo
implementations. |
protected java.awt.Component |
createParentComponent() |
protected java.awt.Image |
getFrameIconImage() |
protected java.lang.String |
getFrameTitle() |
protected void |
runOnEventDispatchThread(java.lang.Runnable runnable) |
protected void |
setFrameIconImage(java.awt.Image image)
Sets the image that will be used for the frame icon when showing this demo.
|
protected void |
setFrameTitle(java.lang.String frameTitle)
Sets the title for the frame being created by this demo case.
|
protected void |
show(java.lang.CharSequence text)
Shows the given text in a TextArea using a fixed width font.
|
protected void |
show(java.awt.Component component)
Convenience method for showing any kind of
Component object. |
protected void |
show(java.awt.Component[] components,
java.awt.LayoutManager layoutManager)
Convenience method for showing an array of
Component objects. |
protected void |
show(java.awt.Window window)
Convenience method for showing any kind of
Window object. |
protected void |
showAsIs(java.awt.Window window)
Shows the given
Window object without modifying its size or position. |
protected void |
showProportional(java.lang.CharSequence text)
Shows the given text in a TextArea using a proportional font.
|
cancel, clone, createRunnable, disposeDemoWindow, executeTearDown, exit, getRegisteredDemoWindow, isRegisteredDemoWindowOpened, registerDemoWindow, setRegisteredDemoWindowOpened
accept, after, assertNotNull, assertNull, assertTrue, before, createThreadGroup, executeSetUp, fail, getClone, getIdentifier, getName, getRunnable, runDemo, setName, setRunnable, setUp, tearDown, toString
public AwtDemoCase()
public AwtDemoCase(java.lang.String name)
protected void show(java.awt.Component component)
Component
object. The frame
provided to this object will also be registred as demo window for this GuiDemoCase.protected void show(java.awt.Component[] components, java.awt.LayoutManager layoutManager)
Component
objects.
The frame containing the components will also be registered as demo window for this democase.
The specified layout manager will be used to lay out the components.protected void show(java.awt.Window window)
Window
object. The given object
will also be registred as demo window for this democase (if not being registered already).
Note that the window will be packed, centered on the screen and made non-modal if being a dialog.showAsIs(Window)
protected void runOnEventDispatchThread(java.lang.Runnable runnable)
protected void showAsIs(java.awt.Window window)
Window
object without modifying its size or position.
The given object will also be registred as demo window for this democase.
Note that the window will be made non-modal if being a dialog.show(Window)
protected java.awt.Frame createFrame()
Frame
object that can be used for demo
implementations. The frame is automatically registered as demo window and decorated
with the necessary window listener, icon, title, etc.show(Window)
,
show(Component)
protected java.awt.Component createParentComponent()
protected java.lang.String getFrameTitle()
protected void setFrameTitle(java.lang.String frameTitle)
null
(default)
will set the title to the name of the demo.createFrame()
protected java.awt.Image getFrameIconImage()
protected void setFrameIconImage(java.awt.Image image)
protected void show(java.lang.CharSequence text)
showProportional(CharSequence)
protected void showProportional(java.lang.CharSequence text)
show(CharSequence)
JDemo homepage: http://www.jdemo.de
Copyright © 2003-2012 Markus Gebhard. All Rights Reserved.