|
|||||||||
| 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 ContainerComponent.getMinimumSize(),
Component.setPreferredSize(Dimension),
LayoutManagerpublic void setLayout(LayoutManager manager)
Container
setLayout in class Containermanager - The new layout manager for this container.public void setLayeredPane(JLayeredPane layeredPane)
RootPaneContainer
setLayeredPane in interface RootPaneContainerlayeredPane - TODOpublic JLayeredPane getLayeredPane()
RootPaneContainer
getLayeredPane in interface RootPaneContainerpublic JRootPane getRootPane()
RootPaneContainer
getRootPane in interface RootPaneContainerprotected void setRootPane(JRootPane root)
protected JRootPane createRootPane()
public Container getContentPane()
RootPaneContainer
getContentPane in interface RootPaneContainerpublic void setContentPane(Container contentPane)
RootPaneContainer
setContentPane in interface RootPaneContainercontentPane - TODOpublic Component getGlassPane()
RootPaneContainer
getGlassPane in interface RootPaneContainerpublic void setGlassPane(Component glassPane)
RootPaneContainer
setGlassPane in interface RootPaneContainerglassPane - TODO
protected 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.
addImpl in class Containercomp - 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()
AppletApplet.AccessibleApplet.
getAccessibleContext in interface AccessiblegetAccessibleContext in class Appletpublic JMenuBar getJMenuBar()
public void setJMenuBar(JMenuBar menubar)
protected String paramString()
Container
paramString in class Containerprotected void processKeyEvent(KeyEvent e)
Component
processKeyEvent in class Componente - the KeyEvent to processKeyListener,
Component.addKeyListener(KeyListener),
Component.enableEvents(long)public void remove(Component comp)
Container
remove in class Containercomp - The component to remove from this container.protected boolean isRootPaneCheckingEnabled()
protected void setRootPaneCheckingEnabled(boolean enabled)
public void update(Graphics g)
Container
update in class Containerg - 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 | ||||||||