|
|
|
|
|
|
SolutionDownload BorderLayoutTest source code.HTML Interface to Applet<APPLET CODEBASE="/applets/magelang/AWT-Training/classes/" CODE="BorderLayoutTest.class" WIDTH=300 HEIGHT=150 ALIGN=CENTER></APPLET> Java Codeimport java.awt.*; public class BorderLayoutTest extends java.applet.Applet { public void init() { setLayout(new BorderLayout()); add("North", new Button("North")); add("South", new Button("South")); add("West", new Button("West")); add("East", new Button("East")); add("Center", new Button("Center")); } } |