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 to show an example of using Abstract Class and Abstract Method

  2. Program to compute the sum of the digits of a given integer number. eg: I/o=4 then O/p=4+3+2+1=10

  3. RMI based application for login validation based on data saved in text file stored on the server and will display appropriate message to the client..

  4. Program that takes a long sentence and a character from the client and count the occurrence of the character in the sentence at the server side

  5. Program to show an example of Arrays of String

  6. Program that enabled applet that takes name of the user. Server returns back the number in uppercase clubbed with “HELLO” and display it on applet

  7. Program to reverse the number eg given no : - 12345, output want :- 54321

  8. Do the following for the Array Insert the element in the array,delete an element from the array,search for a particular element Create multiple thread

  9. Program of Floyds Triangle

  10. Program to show the use of For Loop

  11. Program to read the ballots and count the votes cast for each candidate using an array variable count

  12. Program to show the use of Comparison operator (==) for comparing Strings

  13. Program to show an example of using a Static Nested Class

  14. Program to declare and initialize Boolean variables and print them on the Standard Output Device

  15. 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

  16. Program which simulate the dictionary in java

  17. Program to show an example of using multiple classes in a program

  18. Program to show an example of using user-defined package in a program

  19. Program to show the use of Logical OR Operator (|) in If Statements

  20. Program to read the table elements into a two-dimensional array temperature

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