[Q]´ÙÀ̾ó·Î±× ¹Ú½º¿Í ¾ÖÇø´°£ÀÇ µ¥ÀÌÅÍ ±³È¯


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

±Û¾´ÀÌ :ÀåÀαâ 1998³â 11¿ù 17ÀÏ 05:52:22

°í¹Î °í¹ÎÇÏ´Ù°¡ ¿©±â¿¡ ±ÛÀ» ¿Ã·Áº¾´Ï´Ù.
¾Ë·ÁÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.


¿äÁò Á¦°¡ ÇÏ°íÀÖ´Â °ÍÀº
óÀ½¿¡ ¾ÖÇø´À» ½ÇÇà½ÃÅ°¸é ÀÚµ¿À¸·Î
´ÙÀ̾ó·Î±× ¹Ú½º°¡ ¶ß°ÔÇؼ­ °Å±â¿¡ ¾ÆÀ̵ð¿Í
Æнº¿öµå¸¦ ³Ö°í ÀÌ°ÍÀ» ¾ÖÇø´ÀÌ ¹Þ¾Æ¼­
ó¸®ÇÏ´Â °ÍÀÔ´Ï´Ù. ¿ì¼± ±ÞÇÑ°ÍÀº
¾î¶»°Ô ÇÏ¸é ´ÙÀ̾ó·Î±×¹Ú½ºÀÇ °ªÀ» ¹ÞÀ»¼ö ÀÖ´À³Ä´Â °ÍÀÔ´Ï´Ù.
¿¹¸¦ µé¾î Áö±Ý ÇÏ°í ÀÖ´Â °æ¿ì´Â "È®ÀÎ"¹öÆ°À» ´©¸£¸é
´ÙÀ̾ó·Î±× ¹Ú½º´Â »ç¶óÁö¸é¼­
±× °ªÀ» ¾ÖÇø´ÀÌ ¹Þµµ·Ï ÇÏ´Â °ÍÀÔ´Ï´Ù.
±×·±µ¥ ±×°ÍÀÌ ÀßµÇÁö ¾Ê´õ±º¿ä...
¾ÖÇø®ÄÉÀ̼ǿ¡¼­´Â ¿¹Á¦°¡ À־ Á» µÇ´øµ¥,
ÀÌ°ÍÀº ¾ÖÇø´¿¡¼­ ÇÏ·Á´Ï...¸Ó¸®°¡ ³ªºü¼­...


Á» µµ¿Í ÁÖ¼¼¿ä...
¾Æ·¡´Â ¼Ò½ºÀÔ´Ï´Ù.


==================
import java.awt.*;
import com.sun.java.swing.*;
import borland.jbcl.layout.*;



interface ResultProcessor
{
public void processResult(JDialog source, Object obj);
}


class ConnectInfo
{
public String username;
public String password;
public ConnectInfo(String u, String p)
{
username = u;
password = p;
}
}



class Dialog1 extends JDialog {

JPanel jPanel1 = new JPanel();
XYLayout xYLayout1 = new XYLayout();
Label label1 = new Label();
TextField username = new TextField();
Label label2 = new Label();
TextField password = new TextField();
Label label3 = new Label();
Button button1 = new Button();
Button button2 = new Button();



public Dialog1(Frame frame, String title, boolean modal) {
super(frame, title, modal);
try {
jbInit();
pack();
}
catch (Exception ex) {
ex.printStackTrace();
}
}


public Dialog1() {
this(null, "", false);
}


/*
public Dialog1(AppletFrame1 parent, ConnectInfo u)
{
super(parent, true);
}
*/


void jbInit() throws Exception {

jPanel1.setLayout(xYLayout1);
xYLayout1.setHeight(189);
xYLayout1.setWidth(297);
label1.setText("ÇÐ ¹ø");
label2.setText("ºñ¹Ð¹øÈ£");
password.setEchoChar('*');
label3.setText("* ºñ¹Ð¹øÈ£´Â Áֹεî·Ï¹øÈ£ 13ÀÚ¸®ÀÔ´Ï´Ù.");
button1.setLabel("È®ÀÎ");
button2.setLabel("Ãë¼Ò");
getContentPane().add(jPanel1);
jPanel1.add(label1, new XYConstraints(44, 31, 55, 30));
jPanel1.add(username, new XYConstraints(101, 31, 109, 27));
jPanel1.add(label2, new XYConstraints(39, 75, 52, 20));
jPanel1.add(password, new XYConstraints(99, 74, 113, 24));
jPanel1.add(label3, new XYConstraints(35, 116, 239, 24));
jPanel1.add(button1, new XYConstraints(105, 149, 45, 29));
jPanel1.add(button2, new XYConstraints(156, 149, 44, 28));


}


public boolean action(Event evt, Object arg)
{
if(arg.equals("È®ÀÎ"))
{
dispose();
((ResultProcessor)getParent()).processResult(this, new ConnectInfo(username.getText(), password.getText()));
}

else if(arg.equals("Ãë¼Ò"))
dispose();

else return super.action(evt,arg);
return true;
}




}



public class AppletFrame1 extends JApplet implements ResultProcessor


{
String x,y;


Dialog1 d1;

public void init()
{

d1 = new Dialog1(null,"A Dialog Window",true);
d1.show();
d1.resize(300,300);
}
/*
public void stop()
{
d1.hide();
}
*/
public void processResult(JDialog source, Object result)
{
if(source instanceof Dialog1)
{

ConnectInfo info = (ConnectInfo)result;
System.out.println(info.username + " " + info.password);

}
}


}








´ÙÀ½ ±Ûµé:



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

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


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