Simple Button


This is an applet



This applet displays the functions of buttons that can be used in the future user - computer graphic interface.

Web page configuration:

<applet code="button.class" codebase="applet" width=100 height=50>
This is an applet
</applet>

Source Code:

import java.awt.*;

public class button extends java.applet.Applet {

       String s = "submit";
       String r = "reset";

       Button submit = new Button (s);
       Button reset = new Button (r);

       public void init(){
               add(submit);
               add(reset);
       }
}

Copyright©2002, All Right Reserved

Department of Geography, San Diego State University