¾×¼Ç À̺¥Æ®¸¦ ¹Þ´Â °÷Àº ¸Þ´ºÀÇ ÄÁÅ×À̳ÊÀÎ ÇÁ·¹ÀÓ..


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :À±°æ±¸ 1998³â 1¿ù 18ÀÏ 14:34:41

In Reply to: [Áú¹®] ÀÌ ½î½º´Â ¶Ç ¹¹°¡ À߸øµÇ¾ú´ÂÁö.. posted by À̽¹è on 1998³â 1¿ù 18ÀÏ 13:16:47:

¾×¼Ç À̺¥Æ®¸¦ ¹Þ´Â °÷Àº ¸Þ´ºÀÇ ÄÁÅ×À̳ÊÀÎ ÇÁ·¹ÀÓÀÌÁö ¾ÖÇø´ÀÌ ¾Æ´Õ´Ï´Ù.
µû¶ó¼­... ´ÙÀ½°ú °°ÀÌ ¼öÁ¤Çغ¸¼¼¿ä.

import java.awt.*;
import java.applet.*;
public class Test extends Applet
{
        CalFrame calFrame = new CalFrame("Hi~");
        MenuBar MainMenu = new MenuBar();
        Menu FileMenu = new Menu("File", true);
        public void init()
        {
                
                calFrame.resize(400, 400);
                calFrame.add("Center", new Button("Test"));
                calFrame.setMenuBar(MainMenu);
                MainMenu.add(FileMenu);
                FileMenu.add(new MenuItem("Exit"));
                calFrame.show();
        }
}
class CalFrame extends Frame {
        CalFrame(String title) {
        	super(title);
        }
        public boolean handleEvent(Event e)
        {
                        if ((e.id == Event.ACTION_EVENT) && (e.target instanceof MenuItem))
                        {
                                if (((MenuItem)e.target).getLabel().equals("Exit"))
                                {
                                        System.exit(0);
                                }
                        }
                return false;
        }
       
}



´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]