±Û¾´ÀÌ :Á¤Á¾±¹ 2000³â 5¿ù 19ÀÏ 12:42:03
In Reply to: T.T Èûµå³×¿ä.... posted by Á¤Á¾±¹ on 2000³â 5¿ù 19ÀÏ 12:12:25:
¾È³çÇϽʴϱî...
ActionListener¿¡¼ getActionCommand()¸¦ ÀÌ¿ëÇؼ
ÇØ°áÇß½À´Ï´Ù.
¿©±â ¿Ã¶ó¿Í ÀÖ´Â °Ô½ÃÆÇÀÇ ´äº¯µé Áß¿¡ ÀÀ¿ëÇؼ
Çغôµ¥....µÇ´Â±º¿ä...
ÀÌ °Ô½ÃÆÇ¿¡ Á¤¸» °¨»çµå¸®°í Ä£ÀýÇÏ°Ô ´äº¯ÇØ ÁÖ½Å
ºÐµé²²µµ °¨»çµå¸³´Ï´Ù...
ActionListener runChatListener = new ActionListener()
{
public void actionPerformed(ActionEvent ev)
{
user = ev.getActionCommand();//À̺κÐÀ» ¼öÁ¤
user = userText.getText();//ÇÏ¿´½À´Ï´Ù.
if(mainFrame ==null) {
try{
.
.
.
.
.
.
} catch (UnknownHostException e) {
System.err.println("È£½ºÆ®°¡ ÀÌ»óÇÕ´Ï´Ù.");
System.exit(1);
} catch (IOException e){
System.err.println("ÀÔÃâ·Â ¿¡·¯ÀÔ´Ï´Ù.");
System.exit(1);
}
.
.
.
.
.
mainFrame.addWindowListener(xExitListener);
}
mainFrame.setVisible(true);
}
};