Java Tutorial

 
 
 
 
/* <applet code=\"showDemo\" height=300 width=300> </applet> */

import java.awt.*;
import java.applet.*;
import java.net.*;

public class showDemo extends Applet
{
     public void start() {
        AppletContext ac = getAppletContext();
        URL url = getCodeBase();

        try{
                ac.showDocument(new URL(url + \"Test.html\"));
        }catch(MalformedURLException e){
                showStatus(\"URL not Found \");
        }
    }
}

    Related Post:
  1. Program that demonstrates type casting

  2. Program to show an example of Polymorphism

  3. Program to show an example of using Abstract Class and Abstract Method

  4. Program to declare, initialize and print a StringBuffer object

  5. Program to show an example of using a Static Nested Class outside the Top-Level Class

  6. Game application in CORBA for which player will guess a number between 1 to 100, which will be compared to the random number generated by the class

  7. An applet program to display text

  8. Program to show an example of creating a class and using its object

  9. Program to compare Strings by compring successive corresponding characters, starting with the first character in each String

  10. Program of UDP datagram

  11. Create an interface coversions. Which have the following functions Inchestomillimeters(), hptowatts(),wattstohp(),poundstogram(),gramtopounds()

  12. Program to show the use of some Character Methods

  13. Program that accepts a shopping list of items from the command line and stores them in a vector. Also provide facility to perform operation

  14. Program to show the use of Bitwise Operator (&) AND

  15. Program to copy the elements of an array into another array in reverse order and print them

  16. Program that accepts a shopping list of five items from the command line and stores them in vector

  17. Program to read input from the Standard Input Device

  18. An applet program showing Clicked Event on canvas

  19. An applet program that displays Text at the center of the string which is passed as parameter

  20. Program of an applet to illustrate BarChart

 
 
Didn't find what you were looking for? Find more on An applet program of showing new document using showDocument(URL) method