Button Display

No Comment - Post a comment

/* Java Program To Display Button On An Applet . Done using Applets.*/

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

public class BorderApp extends Applet
{
public void init()
{
setLayout(new BorderLayout());
Button b1 = new Button("EAST");
Button b2 = new Button("WEST");
Button b3 = new Button("NORTH");
Button b4 = new Button("SOUTH");
Button b5 = new Button("CENTER");
add("East",b1);
add("West",b2);
add("North",b3);
add("South",b4);
add("Center",b5);
}
}
//< applet code =BorderApp width = 500 height = 500>< /applet>

 
This Post has No Comment Add your own!

Post a Comment