Javac is what is called when you hit the button for compiling in your IDE and like in IDE if you have errors it will output them for you if no errors you simple get empty command line to execute another command
Applet is java file, just instead of using main method you call init to start applet and stop to stop it
Peter:
Thank-you for your reply.
[html]The source for that class must live in a plain text file with the same name (including case), with a *.java extension.[/html]
Code for Tutorial
[php]public class MyApplet extends java.applet.Applet {
public MyApplet( ) { //create applet
System.out.println("In ctor");
}
public void init( ) { // initialize
System.out.println("In init");
}
public void start( ) { // display page
System.out.println("In start");
}
public void stop( ) { // leave page
System.out.println("In stop");
}
public void destroy( ) {// clean up
System.out.println("In destroy");
}
}[/php] I am bit confused still about the use of "*":
[html]Create a Panorama Applet class and HTML file. Override the init method and print outa trace message. Test and verify the message is printed.Here are the steps:
1. Create Panorama.java using a text editor.
*In the file, add a public Panorama class and have it inherit from
java.applet.Applet.
*In the class, add an init method that takes no arguments and returns void.
*In init, issue System.out.println of "In Panorama.init". This provides amessage when the method is invoked that traces the flow through the applet.Continue to add trace output to all methods you add to the applet.
*Save the file and exit the editor.[/html]
Any input would be appreciated.
Thank-you,
MattyD