login program ÀÌ·¸°Ô Çغ¸¼¼¿ä.


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

±Û¾´ÀÌ :À±ÅÂÆÈ 2000³â 3¿ù 16ÀÏ 18:44:45

In Reply to: [Áú¹®]ÀÚ¹Ù·Î ·Î±×ÀÎ ÇÁ·Î±×·¥ posted by ±èÀϼ· on 2000³â 3¿ù 14ÀÏ 07:32:56:

import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.net.*;


public class Login extends Applet implements ActionListener{
TextField t;
Button b1;
Label L1=new Label("¾ÏÈ£¸¦ ÀÔ·Â ÇØÁֽʽÿä.", Label.CENTER);
// Label L2=new Label("Password :", Label.CENTER);
Panel p=new Panel();

public void init(){
setBackground(Color.orange);
setLayout(new BorderLayout());
t=new TextField("", 16);
t.setEchoChar('*');
b1=new Button("LOGIN");
// p.add(L2);
p.add(t);
p.add(b1);
b1.addActionListener(this);
add(p,"Center");
add(L1, "North");
}
public void actionPerformed(ActionEvent e){
if(e.getActionCommand()=="LOGIN"){
String str=t.getText().trim();
if(str.equals("À±Å¿µ")){
L1.setText("LoginÁß ÀÔ´Ï´Ù. Àá½Ã¸¸ ±â´Ù¸®½Ê½Ã¿ä.");
try{
URL u=new URL("http://my.netian.com/~yty0288/member/ybmember.html");
AppletContext text=getAppletContext();
text.showDocument(u,"contents");
}catch(Exception e1){}
}else{
t.setText("");
L1.setText("¾ÏÈ£°¡ Ʋ¸³´Ï´Ù.ÈùÆ®¸¦ ÀÌ¿ëÇϼ¼¿ä.");
}

}
}
}


´ÙÀ½ ±Ûµé:



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

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


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