⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jform1.java

📁 此程序是用JAVA JDK语言编写的
💻 JAVA
字号:
/*   2004年毕业设计
                  聊天室客户端界面类程序 jform1.java
                                       
                                          设计人:王楠

*/


import java.awt.*;
import java.awt.event.*;
 class jform1 extends Frame 
{
  String sname,llname;
  int sport=0;
 

  Label label1=new Label("连接服务器");
  Label label2=new Label("正在连接..............");
  TextField text3=new TextField("服务器地址:");
  TextField text1=new TextField(15);
  TextField text4=new TextField("服务器端口:");
  TextField text2=new TextField(5);
  TextField text5=new TextField("登录__昵称:");
  TextField text6=new TextField(15);
  Button button1=new Button("连接");;
  //窗口画图
  public void load()
    {	
     this.setLayout(null);
     this.setVisible(false);	
     this.setTitle("Kerberos's connect");
     this.setSize(200,160);
     this.setBackground(new Color(214,211,206));
     this.setLocation(200,150);
     this.setResizable(false);
     this.add(label1);
     this.add(text1);
     this.add(text2);
     this.add(text3);
     this.add(text4);
     this.add(text5);
     this.add(text6);
     this.add(button1);
     this.add(label2);      
     label2.setVisible(false);
     label1.setBounds(10,25,100,20);
     label2.setBounds(50,125,120,20);
     text3.setBounds(10,45,75,20);
     text1.setBounds(88,45,100,20);
     text4.setBounds(10,70,75,20);
     text2.setBounds(88,70,38,20);
     text5.setBounds(10,95,75,20);
     text6.setBounds(88,95,100,20);
     button1.setBounds(50,125,100,20);
     button1.setVisible(true);
     text3.setEditable(false);
     text4.setEditable(false);
     text5.setEditable(false);
     text1.setEditable(true);
     text2.setEditable(true);
     text6.setEditable(true);
     this.setVisible(true);	
     
    }

  //窗口关闭事伴
  public jform1()
    {
	 addWindowListener(new WindowAdapter() {
		public void windowClosing(WindowEvent e) {
			dispose();
			System.exit(0);
			} 
		});
    }


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -