Saturday, 9 September 2017

Other methods of Applet

public void showStatus(String msg)
            Requests that the argument string be displayed in the "status Windows"

public String getParameter(String name)           
            Returns the value of the named parameter in the HTML tag.
ex ;
            <param name="Job" value="Trainer"/>
            String n = getParameter("Job"); ==> n = trainer
public URL getCodeBase()
            To get Url path where the applet is contained.(folder only)
Ex :
            D:/ram
public URL getDocumentBase()
            Returns an absolute URL naming the directory of the document it which the applet tool is embedded.    
Ex :
D:/ram/DrawImage.java(current file);


No comments:

Post a Comment

Featured post

Development Of JAVA Program