|
|
|
|
|
|
SolutionDownload GridLayoutTest source code.HTML Interface to Applet<APPLET CODEBASE="/applets/magelang/AWT-Training/classes/" CODE="GridLayoutTest.class" WIDTH=300 HEIGHT=150 ALIGN=CENTER></APPLET> Java Codeimport java.awt.*; public class GridLayoutTest extends java.applet.Applet { public void init() { setLayout(new GridLayout(3,2)); add(new Button("First")); add(new Button("Second")); add(new Button("Third")); add(new Button("Fourth")); add(new Button("Fifth")); } } |