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. Encrypt the text that you want to send on the client side. The server side decrypts it after receiving. Append server time after each word in the sent

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

  3. Pass the marks of 10 students from the client side design a servlet, which takes these marks and returns the number of students who obtained first cls

  4. Servlet which takes input from an HTML client page and calculates and outputs the premium amount

  5. Program to show the use of some Character Methods

  6. Application for counting factorial of a given number

  7. An applet program that concatenates two string entered in TextField

  8. Program to Concat Strings

  9. Program of binary search tree

  10. Program using session tracking capability of Servlets, which displays information of current user session by HttpServletRequest object

  11. Program to declare, initialize and print an array of integers

  12. Program to show the use of Logical or Boolean Negation i.e. NOT (!)

  13. Program of inventory management and demonstrating interactive input and output

  14. Develop a simple calculator with addition, subtraction, multiplication and division capabilities, data collection from client side, executed on server

  15. Program to search an element in an array using Linear Search

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

  17. Program to show an example of Polymorphism

  18. File handling program to display directory contents

  19. Program of FTP client and server

  20. Program to show the use of If-Else Statement

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