±Û¾´ÀÌ :ÇØ È¿ 1998³â 6¿ù 12ÀÏ 18:12:21
In Reply to: [´äº¯] À©µµ¿ì X ¹öư ´·¶À» ¶§ Á¾·áÇϱâ... posted by ÀÌÈñÁ¤ on 1998³â 6¿ù 12ÀÏ 14:06:38:
¾È³çÇϼ¼¿ä. ÅÂÈÆ´Ô, ÈñÁ¤´Ô. °¨»çµå¸³´Ï´Ù...
ÇÏ·ç Á¾ÀÏ °í»ýÇϼ̴ٴϱî, °¨»ç + ¹Ì¾È À̱º¿ä.
¹°·Ð »óÀÀÇÏ´Â º¸´äÀº ÀÖÁö¿ä.. ==> °¨»ç**¹«ÇÑ´ë
À½..¸ÕÀú ÈñÁ¤´Ô²²¼ ÁֽŰÍÀº ¿¡·¯°¡ ³ª°í
±× ¿¡·¯¸¦ Á¦°¡ ¸ø Àâ¾Æ¼ ¾î¶»°Ô ÇÏÁö¸¦ ¸øÇϰڰí,
ÈñÁ¤´Ô²² Áú¹®Àº Á¦°¡ 1.0¹öÁ¯À̶ó¼ 1.1´ë·Î
º¯°æÇϼ̴ٰí Çߴµ¥, ±¸Ã¼ÀûÀ¸·Î ¾î¶² ºÎºÐÀΰ¡¿ä.
public boolean handlevent(Event e) {
if(e.id == Event.WINDOW_DESTROY)
System.exit(0);
return super.handleEvent(e);
}
public boolean action(Event evt, Object arg) {
if(arg.equals("cancel"))
System.exit(0);
else return false;
return true;
}
ÀÌ ºÎºÐµé Àΰ¡¿ä...
±×¸®°í, ÅÂÈÆ´Ô²²´Â Á¦°¡ ¿øÇϴ°ÍÀº ºê¶ó¿ìÀú¿¡¼ Gui2.html À»
¿£ÅÍÇßÀ»¶§,ÇϳªÀÇ ÇÁ·¹ÀÓ Ã¢À̶߰í, ±×¸®°í, ±× ÇÁ·¹ÀÓ Ã¢¾È¿¡
¹öưÀÌ Çϳª ÀÖ¾î ±× ¹öưÀ» ´·¶À»¶§ ÇÁ·¹ÀÓâÀÌ ´ÝÈ÷°Ô
ÇÏ´Â ±×¸®°í, ÇÁ·¹ÀÓâÀÇ ¸Ç ¿À¸¥ÂÊ¿¡ ÀÖ´Â
x ¸¦ ´·¶À»¶§ ÇÁ·¹ÀÓâÀÌ ´ÝÈ÷´ÂÇÁ·Î±×·¥À» ¿øÇϴ°ÅÁö¿ä.
±â¿ÕÀÌ¸é ¿ÏÀüÇÑ ½î¾²¸¦ ÁÖ¼ÌÀ¸¸é ÇÕ´Ï´Ù.
Áß°£ºÎÅÍ º¸´Ï, ÀÌÇØ°¡ ´Ê³×¿ä...
±×¸®°í, ¶ÇÇϳª ¸ðµçºÐµé±ú Áú¹®...
¾Æ·¡ ½î¾²´Â ºê¶ó¿ìÀú¿¡¼ ÇÁ·¹ÀÓâÀÌ Çϳª ·ÎµåµÇ¸é¼,
TextArea ¿Í Button ÀÌ »çÀÌÁî ÁØ´ë·Î ³ªÅ¸³ª°Ô ÇÏ´Â
p/g Àε¥ ¿Ã¹Ù¸£°Ô ³ªÅ¸³ªÁö°¡ ¾Ê³×¿ä.
¿ø·¡ ³ªÅ¸³ª¾ßµÉ ¸ð¾çÀº ÀÌ·¸ÁÒ...
__________________ ______ _______________
| | | | | |
| | |_____| | |
| | _____ | |
| | | | | |
|_________________| |_____| |______________|
______ ______
| | | |
|_____| |_____|
±Ùµ¥ ÀÌ·¸°Ô ¾È³ªÅ¸³ªÁÒ...
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class Gui2 extends java.applet.Applet implements ActionListener {
Frame window;
public void init() {
window = new MyFrame("A PopUp Window");
// window.resize(508, 367);
window.show();
}
class MyFrame extends Frame {
MyFrame(String title) {
super(title);
Panel p = new Panel();
p.resize(508, 367);
p.setLayout(new FlowLayout());
Button button2 = new Button("Ãë ¼Ò");
button2.reshape(216, 120, 77, 34);
p.add(button2);
Button button3 = new java.awt.Button("È® ÀÎ");
button3.reshape(60, 252, 100, 34);
p.add(button3);
TextArea textArea1 = new TextArea();
textArea1.reshape(324, 36, 360, 156);
p.add(textArea1);
TextArea textArea2 = new TextArea();
textArea2.reshape(36, 48, 156, 156);
p.add(textArea2);
Button button1 = new java.awt.Button("°á Àç");
button1.reshape(216, 60, 77, 34);
p.add(button1);
Button button4 = new java.awt.Button("´Ý ±â");
button4.reshape(216, 252, 100, 34);
p.add(button4);
add("South", p);
}
}
public boolean handleEvent(Event evt) {
if(evt.id == Event.WINDOW_DESTROY)
System.exit(0);
return super.handleEvent(evt);
}
public boolean action(Event evt, Object arg) {
if(arg.equals("Ãë ¼Ò"))
System.exit(0);
else return false;
return true;
}
}