KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > swing > JApplet

javax.swing
Class JApplet

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by java.applet.Applet
                  extended by javax.swing.JApplet
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer
See Also:
Top Examples, Source Code, XMLEncoder

protected AccessibleContext accessibleContext
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void addImpl(Component comp,
                       Object constraints,
                       int index)
See Also:
RootPaneContainer, setRootPaneCheckingEnabled(boolean), IllegalArgumentException, Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected JRootPane createRootPane()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public AccessibleContext getAccessibleContext()
See Also:
Applet, Accessible
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Container getContentPane()
See Also:
setContentPane(java.awt.Container), RootPaneContainer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Component getGlassPane()
See Also:
setGlassPane(java.awt.Component), RootPaneContainer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JMenuBar getJMenuBar()
See Also:
setJMenuBar(javax.swing.JMenuBar)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JLayeredPane getLayeredPane()
See Also:
setLayeredPane(javax.swing.JLayeredPane), IllegalComponentStateException, RootPaneContainer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JRootPane getRootPane()
See Also:
setRootPane(javax.swing.JRootPane), RootPaneContainer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected boolean isRootPaneCheckingEnabled()
See Also:
RootPaneContainer, setRootPaneCheckingEnabled(boolean), setLayout(java.awt.LayoutManager), addImpl(java.awt.Component, java.lang.Object, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JApplet()
        throws HeadlessException
See Also:
JComponent.getDefaultLocale(), GraphicsEnvironment.isHeadless()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[185]Simple JApplet
By Anonymous on 2004/01/12 03:56:43  Rate
import javax.swing.JApplet; // import class JApplet  
 import java.awt.Graphics; // import class Graphics  
  
  
 public class Homework1 extends JApplet  {   
  
  
 public void paint (  Graphics g  )   
  {   
   g.drawString (  " * ", 25, 20  ) ;  
   g.drawString (  " *** ", 25, 30  ) ;  
   g.drawString (  " ***** ", 25, 40  ) ;  
   g.drawString (  " ****** ", 25, 50  ) ;  
   g.drawString (  " ** ", 25, 60  ) ;  
   g.drawString (  " ** ", 25, 70  ) ;  
   g.drawString (  " ** ", 25, 80  ) ;  
   g.drawString (  " ** ", 25, 90  ) ;  
   g.drawString (  " ** ", 25, 100  ) ;  
  }   
  
  
  } 


protected String paramString()
See Also:
Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void remove(Component comp)
See Also:
RootPaneContainer, Container.add(java.awt.Component), NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected JRootPane rootPane
See Also:
setRootPane(javax.swing.JRootPane), getRootPane()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected boolean rootPaneCheckingEnabled
See Also:
RootPaneContainer, setRootPaneCheckingEnabled(boolean), isRootPaneCheckingEnabled()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setContentPane(Container contentPane)
See Also:
getContentPane(), IllegalComponentStateException, RootPaneContainer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setGlassPane(Component glassPane)
See Also:
getGlassPane(), RootPaneContainer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMenuBar(JMenuBar menuBar)
See Also:
getJMenuBar()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLayeredPane(JLayeredPane layeredPane)
See Also:
getLayeredPane(), RootPaneContainer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLayout(LayoutManager manager)
See Also:
RootPaneContainer, setRootPaneCheckingEnabled(boolean), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void setRootPane(JRootPane root)
See Also:
getRootPane()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void setRootPaneCheckingEnabled(boolean enabled)
See Also:
RootPaneContainer, isRootPaneCheckingEnabled(), setLayout(java.awt.LayoutManager), addImpl(java.awt.Component, java.lang.Object, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void update(Graphics g)
See Also:
Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags