Package org.jdesktop.swingx
Class JXApplet
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
org.jdesktop.swingx.JXApplet
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible,RootPaneContainer
An applet that uses
JXRootPane as its root container.- Author:
- kschaefer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JApplet
JApplet.AccessibleJAppletNested classes/interfaces inherited from class java.applet.Applet
Applet.AccessibleAppletNested classes/interfaces inherited from class java.awt.Panel
Panel.AccessibleAWTPanelNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested 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, rootPaneCheckingEnabledFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final JXRootPaneOverridden to create a JXRootPane and to ensure that the root pane is always created on the Event Dispatch Thread.protected JXRootPaneThis method performs the actual creation of the root pane and is guaranteed to be performed on the Event Dispatch Thread.Returns the value of the cancel button property from the underlyingJXRootPane.Returns the value of the default button property from the underlyingJRootPane.Returns the value of the status bar property from the underlyingJXRootPane.Returns the value of the tool bar property from the underlyingJXRootPane.voidsetCancelButton(JButton button) Sets the cancel button property on the underlyingJXRootPane.voidsetDefaultButton(JButton button) Sets the default button property on the underlyingJRootPane.voidsetStatusBar(JXStatusBar statusBar) Sets the status bar property on the underlyingJXRootPane.voidsetToolBar(JToolBar toolBar) Sets the tool bar property on the underlyingJXRootPane.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, updateMethods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stopMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Constructor Details
-
JXApplet
Creates a the applet instance.This constructor sets the component's locale property to the value returned by
JComponent.getDefaultLocale.- Throws:
HeadlessException- if GraphicsEnvironment.isHeadless() returns true.- See Also:
-
-
Method Details
-
createRootPane
Overridden to create a JXRootPane and to ensure that the root pane is always created on the Event Dispatch Thread. Some applet containers do not start applets on the EDT; this method, therefore, protects against that. Actual, root pane creation occurs increateRootPaneSafely().- Overrides:
createRootPanein classJApplet- Returns:
- the root pane for this applet
- See Also:
-
createRootPaneSafely
This method performs the actual creation of the root pane and is guaranteed to be performed on the Event Dispatch Thread.Subclasses that need to configure the root pane or create a custom root pane should override this method.
- Returns:
- the root pane for this applet
-
getRootPane
- Specified by:
getRootPanein interfaceRootPaneContainer- Overrides:
getRootPanein classJApplet
-
getStatusBar
Returns the value of the status bar property from the underlyingJXRootPane.- Returns:
- the
JXStatusBarwhich is the current status bar - See Also:
-
setStatusBar
Sets the status bar property on the underlyingJXRootPane.- Parameters:
statusBar- theJXStatusBarwhich is to be the status bar- See Also:
-
getToolBar
Returns the value of the tool bar property from the underlyingJXRootPane.- Returns:
- the
JToolBarwhich is the current tool bar - See Also:
-
setToolBar
Sets the tool bar property on the underlyingJXRootPane.- Parameters:
toolBar- theJToolBarwhich is to be the tool bar- See Also:
-
getDefaultButton
Returns the value of the default button property from the underlyingJRootPane.- Returns:
- the
JButtonwhich is the default button - See Also:
-
setDefaultButton
Sets the default button property on the underlyingJRootPane.- Parameters:
button- theJButtonwhich is to be the default button- See Also:
-
getCancelButton
Returns the value of the cancel button property from the underlyingJXRootPane.- Returns:
- the
JButtonwhich is the cancel button - See Also:
-
setCancelButton
Sets the cancel button property on the underlyingJXRootPane.- Parameters:
button- theJButtonwhich is to be the cancel button- See Also:
-