[ÀÚ¹ÙÃʺ¸]´ä´äÇØ Á×°Ú½À´Ï´Ù..


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

±Û¾´ÀÌ :¹Ú»óÁØ 2000³â 6¿ù 03ÀÏ 00:23:52

ÀÚ¹Ù°¡ ¹«¾ð°¡ ±Ã±ÝÇØ °øºÎ¸¦ ÇÏ°Ô µÇ¾ú½À´Ï´Ù. À±°æ±¸´ÔÀÌ ¸¶ÀÌÅ©·Î¼ÒÇÁÆ®Áö¿¡ ¿¬Á¦Çϼ̴ø À±°æ±¸ÀÇ ÀÚ¹ÙÀ̾߱⸦ º¸¸é¼­ °øºÎÇÏ°íÀÖ½À´Ï´Ù.. ±Ùµ¥ ÀÌ·± ¿¡·¯·Î ´õÀÌ»óÀÇ Áøµµ°¡ ³ª°¡Áö ¾Ê½À´Ï´Ù.
HelloWindow.java:4: class helloWindow must bo declared abstract. It does not define void actionPerformed(java.awt.eventActionEvent) from interface java.awt.even.ActionListener.
class HelloWindow extends Frame implements
^
ActionListener{


HelloWindow.java:18:class HelloWindow is an abstract class It can't be instantiated.


new HelloWindow("Hello Window program");
^
2errors


À§¿Í°°Àº ¿¡·¯°¡ ³ª¿É´Ï´Ù.. ¼Ò½ºÄÚµå´Â ´ÙÀ½°ú °°½À´Ï´Ù
import java.awt.*;
import java.awt.event.*;


class HelloWindow extends Frame implements ActionListener {
HelloWindow(String title){
super(title);
Button button = new Button("Á¾·á");
button.addActionListener(this)
add(button,"South");
setSize(200, 200);
doLayout();
setVisible(true);
}


public static void main(String args[]){
new HelloWindow("Hello Window Program");
}


public void paint(Graphics g){
g.drawString("Hello" ,50, 100);
}


public void actionPerfomed(ActionEvent e){
System.exit(0);
}
}
ÀÌ¿Í °°½À´Ï´Ù. ÀÌ °Ô½ÃÆÇ¿¡¼­ ÀÌ¿Í À¯»çÇÑ Áú¹®À» ã¾Æº¸´Ï °°ÀºÁú¹®ÀÌ ÀÖ´õ±º¿ä.. ±Ùµ¥ ÇØ°á´äº¯À̳ª ¹æ¹ýÀº ãÁú¸øÇß½À´Ï´Ù. °í¼ö´ÔµéÀÇ Áöµµ¹Ù¶ø´Ï´Ù.. Á¦¹ßºÎŹÇÕ´Ï´Ù


´ÙÀ½ ±Ûµé:



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

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
HTML ÅÂ±× Æ÷ÇÔ ¿©ºÎ: HTML ¹®¼­ÀÏ °æ¿ì üũ
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


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