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

📄 jform3.java

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

*/

import java.awt.*;
 class jform3 extends Frame 
{
  List list1=new List(); 

  TextField text5=new TextField(15);
  TextField text6=new TextField(3);
  Label label1=new Label("室内人数:");
  Label label2=new Label("聊天用户地址:");
  Label label3=new Label("<聊天室创建成功>");

  TextField text1=new TextField("聊天室名称:");
  TextField text2=new TextField("设定聊天室人数:");
  TextField text3=new TextField(20);
  TextField text4=new TextField(3);

  Button button1=new Button("踢");
  Button button2=new Button("创建");
 //窗口画图
 public void load()
 {
 	 this.setLayout(null);
     this.setTitle("Kerberos's Chat system");
     this.setSize(350,385);
     this.setBackground(new Color(214,211,206));
     this.setLocation(100,10);
     this.setResizable(false);
 	 this.add(list1);
     this.add(label1);
     this.add(label2);
     this.add(label3);
     this.add(text1);
     this.add(text2);
     this.add(text3);
     this.add(text4);
     this.add(text5);     
     this.add(text6);
     this.add(button1);
     this.add(button2);     
     list1.setBounds(10,30,200,345);     
     label1.setBounds(220,35,60,20);
     text6.setBounds(280,35,60,20);     
     label2.setBounds(220,65,80,20);
     text5.setBounds(220,85,120,20);
     button1.setBounds(220,115,120,20);     
     text1.setBounds(220,200,120,20);
     text3.setBounds(220,230,120,20);
     text2.setBounds(220,270,120,20);
     text4.setBounds(290,300,50,20);
     button2.setBounds(220,330,120,40);
     label3.setBounds(230,350,100,20);
     text1.setEditable(false);
     text2.setEditable(false);
     text5.setEditable(false);
     text6.setEditable(false);
     label3.setVisible(false);     
     this.setVisible(true);
 	}


}

⌨️ 快捷键说明

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