home *** CD-ROM | disk | FTP | other *** search
/ Java by Example / jbecd.bin / JBE-CD / NTUsers / JBECODE.ZIP / JavaByExample / chap22 / lst22_4.txt < prev    next >
Text File  |  1996-02-29  |  358b  |  14 lines

  1. BorderLayout layout = new BorderLayout(0, 0);
  2. setLayout(layout);
  3. button1 = new Button("Button1");
  4. button2 = new Button("Button2");
  5. button3 = new Button("Button3");
  6. button4 = new Button("Button4");
  7. button5 = new Button("Button5");
  8. add("North", button1);
  9. add("South", button2);
  10. add("East", button3);
  11. add("West", button4);
  12. add("Center", button5);
  13.  
  14.