Java Reference
In-Depth Information
/** Construct the GUI for an Applet Status window */
AppletAdapter () {
super
super ();
// Must do this very early on, since the Applet's
// Constructor or its init() may use showStatus()
add ( status = new
new Label ());
// Give "status" the full width
status . setSize ( getSize (). width , status . getSize (). height );
showStatus ( "AppletAdapter constructed" );
// now it can be said
}
/****************** AppletStub ***********************/
/** Called when the applet wants to be resized. */
public
public void
void appletResize ( int
int w , int
int h ) {
// applet.setSize(w, h);
}
/** Gets a reference to the applet's context. */
public
public AppletContext getAppletContext () {
return
return this
this ;
}
/** Gets the base URL. */
public
public URL getCodeBase () {
return
return getClass (). getResource ( "." );
}
/** Gets the document URL. */
public
public URL getDocumentBase () {
return
return getClass (). getResource ( "." );
}
/** Returns the value of the named parameter in the HTML tag. */
public
public String getParameter ( String name ) {
String value = null
null ;
return
return value ;
}
/** Determines if the applet is active. */
public
public boolean
boolean isActive () {
return
return true
true ;
}
/************************ AppletContext ************************/
Search WWH ::




Custom Search