public class JApplet extends Applet implements RootPaneContainer, Accessible
| Modifier and Type | Class and Description |
|---|---|
protected class |
JApplet.AccessibleJApplet
Provides accessibility support for
JApplet. |
Applet.AccessibleAppletPanel.AccessibleAWTPanelContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected AccessibleContext |
accessibleContext
The accessible context for this
JApplet. |
protected JRootPane |
rootPane |
protected boolean |
rootPaneCheckingEnabled |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
JApplet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addImpl(Component comp,
Object constraints,
int index)
This method is called by all the
add() methods to perform
the actual adding of the component. |
protected JRootPane |
createRootPane() |
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this applet, creating one if
necessary.
|
Container |
getContentPane()
getContentPane
|
Component |
getGlassPane()
getGlassPane
|
JMenuBar |
getJMenuBar() |
JLayeredPane |
getLayeredPane()
getLayeredPane
|
Dimension |
getPreferredSize()
Returns the preferred size of this container.
|
JRootPane |
getRootPane()
getRootPane
|
protected boolean |
isRootPaneCheckingEnabled() |
protected String |
paramString()
Returns a string representing the state of this container for
debugging purposes.
|
protected void |
processKeyEvent(KeyEvent e)
Called when a key event is dispatched and component events are
enabled.
|
void |
remove(Component comp)
Removes the specified component from this container.
|
void |
setContentPane(Container contentPane)
setContentPane
|
void |
setGlassPane(Component glassPane)
setGlassPane
|
void |
setJMenuBar(JMenuBar menubar) |
void |
setLayeredPane(JLayeredPane layeredPane)
setLayeredPane
|
void |
setLayout(LayoutManager manager)
Sets the layout manager for this container to the specified layout
manager.
|
protected void |
setRootPane(JRootPane root) |
protected void |
setRootPaneCheckingEnabled(boolean enabled) |
void |
update(Graphics g)
Updates this container.
|
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stopadd, 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, 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, validateTreeaction, 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, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, 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, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected AccessibleContext accessibleContext
JApplet.protected boolean rootPaneCheckingEnabled
public JApplet()
public Dimension getPreferredSize()
ContainergetPreferredSize in class ContainerComponent.getMinimumSize(),
Component.setPreferredSize(Dimension),
LayoutManagerpublic void setLayout(LayoutManager manager)
Containerpublic void setLayeredPane(JLayeredPane layeredPane)
RootPaneContainersetLayeredPane in interface RootPaneContainerlayeredPane - TODOpublic JLayeredPane getLayeredPane()
RootPaneContainergetLayeredPane in interface RootPaneContainerpublic JRootPane getRootPane()
RootPaneContainergetRootPane in interface RootPaneContainerprotected void setRootPane(JRootPane root)
protected JRootPane createRootPane()
public Container getContentPane()
RootPaneContainergetContentPane in interface RootPaneContainerpublic void setContentPane(Container contentPane)
RootPaneContainersetContentPane in interface RootPaneContainercontentPane - TODOpublic Component getGlassPane()
RootPaneContainergetGlassPane in interface RootPaneContainerpublic void setGlassPane(Component glassPane)
RootPaneContainersetGlassPane in interface RootPaneContainerglassPane - TODOprotected void addImpl(Component comp, Object constraints, int index)
Containeradd() methods to perform
the actual adding of the component. Subclasses who wish to perform
their own processing when a component is added should override this
method. Any subclass doing this must call the superclass version of
this method in order to ensure proper functioning of the container.public AccessibleContext getAccessibleContext()
AppletApplet.AccessibleApplet.getAccessibleContext in interface AccessiblegetAccessibleContext in class Appletpublic JMenuBar getJMenuBar()
public void setJMenuBar(JMenuBar menubar)
protected String paramString()
ContainerparamString in class Containerprotected void processKeyEvent(KeyEvent e)
ComponentprocessKeyEvent in class Componente - the KeyEvent to processKeyListener,
Component.addKeyListener(KeyListener),
Component.enableEvents(long)public void remove(Component comp)
Containerprotected boolean isRootPaneCheckingEnabled()
protected void setRootPaneCheckingEnabled(boolean enabled)
public void update(Graphics g)
Containerupdate in class Containerg - The graphics context for this update.Component.paint(Graphics),
Component.repaint()