|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
org.jdesktop.swingx.JXApplet
public class JXApplet
An applet that uses JXRootPane
as its root container.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JApplet |
---|
JApplet.AccessibleJApplet |
Nested classes/interfaces inherited from class java.applet.Applet |
---|
Applet.AccessibleApplet |
Nested classes/interfaces inherited from class java.awt.Panel |
---|
Panel.AccessibleAWTPanel |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JApplet |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JXApplet()
Creates a the applet instance. |
Method Summary | |
---|---|
protected JXRootPane |
createRootPane()
Overridden to create a JXRootPane and to ensure that the root pane is always created on the Event Dispatch Thread. |
protected JXRootPane |
createRootPaneSafely()
This method performs the actual creation of the root pane and is guaranteed to be performed on the Event Dispatch Thread. |
JButton |
getCancelButton()
Returns the value of the cancel button property from the underlying JXRootPane . |
JButton |
getDefaultButton()
Returns the value of the default button property from the underlying JRootPane . |
JXRootPane |
getRootPane()
|
JXStatusBar |
getStatusBar()
Returns the value of the status bar property from the underlying JXRootPane . |
JToolBar |
getToolBar()
Returns the value of the tool bar property from the underlying JXRootPane . |
void |
setCancelButton(JButton button)
Sets the cancel button property on the underlying JXRootPane . |
void |
setDefaultButton(JButton button)
Sets the default button property on the underlying JRootPane . |
void |
setStatusBar(JXStatusBar statusBar)
Sets the status bar property on the underlying JXRootPane . |
void |
setToolBar(JToolBar toolBar)
Sets the tool bar property on the underlying JXRootPane . |
Methods inherited from class javax.swing.JApplet |
---|
addImpl, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update |
Methods inherited from class java.applet.Applet |
---|
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
Methods inherited from class java.awt.Panel |
---|
addNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JXApplet() throws HeadlessException
This constructor sets the component's locale property to the value returned by
JComponent.getDefaultLocale
.
HeadlessException
- if GraphicsEnvironment.isHeadless() returns true.GraphicsEnvironment.isHeadless()
,
JComponent.getDefaultLocale()
Method Detail |
---|
protected final JXRootPane createRootPane()
createRootPaneSafely()
.
createRootPane
in class JApplet
createRootPaneSafely()
protected JXRootPane createRootPaneSafely()
Subclasses that need to configure the root pane or create a custom root pane should override this method.
public JXRootPane getRootPane()
getRootPane
in interface RootPaneContainer
getRootPane
in class JApplet
public JXStatusBar getStatusBar()
JXRootPane
.
JXStatusBar
which is the current status barsetStatusBar(JXStatusBar)
,
JXRootPane.getStatusBar()
public void setStatusBar(JXStatusBar statusBar)
JXRootPane
.
statusBar
- the JXStatusBar
which is to be the status bargetStatusBar()
,
JXRootPane.setStatusBar(JXStatusBar)
public JToolBar getToolBar()
JXRootPane
.
JToolBar
which is the current tool barsetToolBar(JToolBar)
,
JXRootPane.getToolBar()
public void setToolBar(JToolBar toolBar)
JXRootPane
.
toolBar
- the JToolBar
which is to be the tool bargetToolBar()
,
JXRootPane.setToolBar(JToolBar)
public JButton getDefaultButton()
JRootPane
.
JButton
which is the default buttonsetDefaultButton(JButton)
,
JRootPane.getDefaultButton()
public void setDefaultButton(JButton button)
JRootPane
.
button
- the JButton
which is to be the default buttongetDefaultButton()
,
JRootPane.setDefaultButton(JButton)
public JButton getCancelButton()
JXRootPane
.
JButton
which is the cancel buttonsetCancelButton(JButton)
,
JXRootPane.getCancelButton()
public void setCancelButton(JButton button)
JXRootPane
.
button
- the JButton
which is to be the cancel buttongetCancelButton()
,
JXRootPane.setCancelButton(JButton)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |