import java.applet.*; import java.awt.*; class exchangeApplet extends Applet { public void start(){ this.setLayout(new GridLayout(3,1)); //make the panels to hold the textfields Panel p1 = new Panel(); Panel p2 = new Panel(); Panel p3 = new Panel(); p1.setLayout(new FlowLayout()); p2.setLayout(new FlowLayout()); p3.setLayout(new FlowLayout()); //Create the labels for the security tfs String sym = "SYMBOL: "; String price = "PRICE: "; String change = "CHANGE: "; //create the individual text fields for each security /** TextField t1a = new TextField(); TextField t1b = new TextField(); TextField t1c = new TextField(); TextField t2a = new TextField(); TextField t2b = new TextField(); TextField t2c = new TextField(); TextField t3a = new TextField(); TextField t3b = new TextField(); TextField t3c = new TextField(); */ //add text fields and labels to the panels p1.add(new Label(sym)); //p1.add(t1a); p1.add(new Label(price)); //p1.add(t1b); p1.add(new Label(change)); //p1.add(t1c); /** p2.add(sym); p2.add(t2a); p2.add(price); p2.add(t2b); p2.add(change); p2.add(t2c); p3.add(sym); p3.add(t3a); p3.add(price); p3.add(t3b); p3.add(change); p3.add(t3c); */ //add the panels to the Applet this.add(p1); //this.add(p2); //this.add(p3); this.repaint(); } //end start } //end class