// Greetings.java // Burton Rosenberg, 3 July 1997 /* An example Java Applet which demonstrates GridLayout, BorderLayouts, layout nesting, Labels, Checkboxes and TextFields. */ import java.awt.* ; import java.applet.* ; public class Greetings extends Applet { TextField textIn = new TextField(40) ; TextField textOut = new TextField(40) ; CheckboxGroup cbg = new CheckboxGroup() ; Checkbox [] cbArray = new Checkbox[3] ; String [] cbLabel = { "Hello", "Goodbye", "Nix" } ; String [] greetingText = { "Hi ", "Bye ", "You're Fired " } ; public void init() { setLayout( new BorderLayout() ) ; Panel relaxedPanel = new Panel() ; relaxedPanel.setLayout( new GridLayout(0,2) ) ; add("North", relaxedPanel ) ; for ( int i = 0; i