|
|||||||||
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
public class JApplet
A top-level container that is usually used in web browsers.
Nested Class Summary | |
---|---|
protected class |
JApplet.AccessibleJApplet
Provides accessibility support for JApplet . |
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected AccessibleContext |
accessibleContext
The accessible context for this JApplet . |
protected JRootPane |
rootPane
|
protected boolean |
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 | |
---|---|
JApplet()
|
Method Summary | |
---|---|
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. |
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 |
Field Detail |
---|
protected AccessibleContext accessibleContext
JApplet
.
protected JRootPane rootPane
protected boolean rootPaneCheckingEnabled
Constructor Detail |
---|
public JApplet()
Method Detail |
---|
public Dimension getPreferredSize()
Container
getPreferredSize
in class Container
Component.getMinimumSize()
,
Component.setPreferredSize(Dimension)
,
LayoutManager
public void setLayout(LayoutManager manager)
Container
setLayout
in class Container
manager
- The new layout manager for this container.public void setLayeredPane(JLayeredPane layeredPane)
RootPaneContainer
setLayeredPane
in interface RootPaneContainer
layeredPane
- TODOpublic JLayeredPane getLayeredPane()
RootPaneContainer
getLayeredPane
in interface RootPaneContainer
public JRootPane getRootPane()
RootPaneContainer
getRootPane
in interface RootPaneContainer
protected void setRootPane(JRootPane root)
protected JRootPane createRootPane()
public Container getContentPane()
RootPaneContainer
getContentPane
in interface RootPaneContainer
public void setContentPane(Container contentPane)
RootPaneContainer
setContentPane
in interface RootPaneContainer
contentPane
- TODOpublic Component getGlassPane()
RootPaneContainer
getGlassPane
in interface RootPaneContainer
public void setGlassPane(Component glassPane)
RootPaneContainer
setGlassPane
in interface RootPaneContainer
glassPane
- TODOprotected void addImpl(Component comp, Object constraints, int index)
Container
add()
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.
addImpl
in class Container
comp
- The component to be added.constraints
- The layout constraints for this component, or
null
if there are no constraints.index
- The index in the component list to insert this child
at, or -1 to add at the end of the list.public AccessibleContext getAccessibleContext()
Applet
Applet.AccessibleApplet
.
getAccessibleContext
in interface Accessible
getAccessibleContext
in class Applet
public JMenuBar getJMenuBar()
public void setJMenuBar(JMenuBar menubar)
protected String paramString()
Container
paramString
in class Container
protected void processKeyEvent(KeyEvent e)
Component
processKeyEvent
in class Component
e
- the KeyEvent
to processKeyListener
,
Component.addKeyListener(KeyListener)
,
Component.enableEvents(long)
public void remove(Component comp)
Container
remove
in class Container
comp
- The component to remove from this container.protected boolean isRootPaneCheckingEnabled()
protected void setRootPaneCheckingEnabled(boolean enabled)
public void update(Graphics g)
Container
update
in class Container
g
- The graphics context for this update.Component.paint(Graphics)
,
Component.repaint()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |