±Û¾´ÀÌ :±ÇÇØÈ¿ 1998³â 6¿ù 10ÀÏ 13:07:03
¾È³çÇϼ¼¿ä.
ºê¶ó¿ìÀú¿¡¼ class file ·Îµå½Ã
´ÙÀ̾ó·Î±× ¹Ú½º°¡ ¶ß°Ô²û ÇÒ·Á°í ÇÕ´Ï´Ù.
¾Æ·¡ ½î¾²°¡ ÀÖÀ¸´Ï, º¸½Ã°í µµ¿òÁ» ÁÖ¼¼¿ä.
Á¦°¡ºÁµµ ¹º°¡ ºÎÁ·ÇÑ°Í °°Àºµ¥ ¸ð¸£°Ú±º¿ä..
´äº¯ ±â´Ù¸®°Ú½À´Ï´Ù.
DialogTest.java ****************************************************** import java.awt.*; public class DialogTest extends Dialog { public DialogTest(Frame parent) { super(parent, "DialogTest", true); Panel p1 = new Panel(); p1.add(new Label("CoreJava")); p1.add(new Label("Kelvin! You win. You can do.")); add("Center", p1); Panel p2 = new Panel(); p2.add(new Button("Ãë ¼Ò")); add("South", p2); resize(220, 150); // DialogTest.show(); } public boolean action(Event evt, Object arg) { if (arg.equals("Ãë ¼Ò")) { dispose(); return true; } return false; } public boolean handleEvent(Event evt) { if (evt.id == Event.WINDOW_DESTROY && evt.target == this) System.exit(0); return super.handleEvent(evt); } } DialogTest.html ****************************************************** <applet class="DialogTest.class" width=400 height=300> </applet> test