SHARE
TWEET

Untitled

a guest Jan 12th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.applet.*;
  2. import java.awt.*;
  3. /*<APPLET
  4.     CODE=Sample2_16.class
  5.     WIDTH=250
  6.     HEIGHT=250>
  7. </APPLET>
  8. */
  9. public class Sample2_16 extends Applet{
  10.     public void init(){
  11.         BorderLayout bl = new BorderLayout(5,5);
  12.         setLayout(bl);
  13.         Button button1 = new Button("button1");
  14.         Button button2 = new Button("button2");
  15.         Button button3 = new Button("button3");
  16.         Button button4 = new Button("button4");
  17.         Button button5 = new Button("button5");
  18.         add(button1,"North");
  19.         add(button2,"South");
  20.         add(button3,"East");
  21.         add(button4,"West");
  22.         add(button5,"Center");
  23.     }
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top