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

  1. GridLayout layout =
  2.     new GridLayout(2, 2, 0, 0);
  3. setLayout(layout);
  4. button1 = new Button("Button1");
  5. button2 = new Button("Button2");
  6. button3 = new Button("Button3");
  7. button4 = new Button("Button4");
  8. add(button1);
  9. add(button2);
  10. add(button3);
  11. add(button4);
  12.  
  13.