|
|
|
|
|
|
SolutionDownload TextAreaTest source code.HTML Interface to Applet<APPLET CODEBASE="/applets/magelang/AWT-Training/classes/" CODE="TextAreaTest.class" WIDTH=300 HEIGHT=100 ALIGN=CENTER></APPLET> Java Codeimport java.awt.*; public class TextAreaTest extends java.applet.Applet { TextArea disp; public void init() { disp = new TextArea("click outside TextArea", 5, 30); add(disp); } public boolean mouseDown(Event e, int x, int y) { disp.appendText("\npushed mouse..."); return true; } } |