Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.applet.*;
- import java.awt.*;
- /*<APPLET
- CODE=Sample2_16.class
- WIDTH=250
- HEIGHT=250>
- </APPLET>
- */
- public class Sample2_16 extends Applet{
- public void init(){
- BorderLayout bl = new BorderLayout(5,5);
- setLayout(bl);
- Button button1 = new Button("button1");
- Button button2 = new Button("button2");
- Button button3 = new Button("button3");
- Button button4 = new Button("button4");
- Button button5 = new Button("button5");
- add(button1,"North");
- add(button2,"South");
- add(button3,"East");
- add(button4,"West");
- add(button5,"Center");
- }
- }
Add Comment
Please, Sign In to add comment