import java.awt.*; import java.applet.*; public class Panels extends Applet{ TextField tf = new TextField(int); TextArea ta = new TextArea(int, int); TextArea ta2 = new TextArea(int, int); Button bt1 = new Button (" ONE "); Button bt2 = new Button (" TWO "); Button bt3 = new Button (" THREE "); Button b1 = new Button (" Channel Up "); Button b2 = new Button (" Volume Up "); Button b3 = new Button (" Power "); Button b4 = new Button (" Channel Down "); Button b5 = new Button (" Volume Down "); Button b6 = new Button (" Mute "); public void init( ){ BorderLayout bl = new BorderLayout( ); FlowLayout fl = new FlowLayout( ); GridLayout gl = new GridLayout(3,3); Panel top = new Panel( ); Panel bottom = new Panel( ); this.setLayout(bl); //the applet's layout this.add("North", top); top.setLayout(fl); //not needed because it is the default top.add(ta); top.add(ta2); this.add("Center", bottom); bottom.setLayout(gl); bottom.add(b1); bottom.add(b2); bottom.add(b3); bottom.add(b4); bottom.add(b5); bottom.add(b6); bottom.add(b7); bottom.add(b8); bottom.add(b9); bottom.add(b10); } //init method finishes } //end of class