KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > applet > AppletStub

java.applet
Interface AppletStub

See Also:
Top Examples, Source Code, Applet.setStub(java.applet.AppletStub)

void appletResize(int width,
                  int height)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[690]Draw text on applets background
By Anonymous on 2004/03/08 14:19:06  Rate
// draw text on applet???s background 
    public void paint (  Graphics g  )  
     {  
  
  
       int width, height; 
  
  
       // call inherited version of method paint 
       super.paint (  g  ) ; 
  
  
  
       g.appletResize (  width, height ) ; 
  
  
 // System.out.println (  width  ) ; 
 // System.out.println (  height  ) ; 
  
  
  
       for  (  int i = 0 ; i  < = colNumber ; i++ )  
   g.drawLine (  0, i * 10, colNumber * 10, i * 10  ) ; 
  
  
       for  (  int j = 0 ; j  < = rowNumber ; j++ )  
   g.drawLine (  j * 10, 0, j * 10, rowNumber * 10  ) ; 
  
  
     }   // end method paint 
  
  
  }   // end class WelcomeApplet 
 


AppletContext getAppletContext()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


URL getCodeBase()
See Also:
getDocumentBase()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


URL getDocumentBase()
See Also:
getCodeBase()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


String getParameter(String name)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


boolean isActive()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags