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

📄 guanli_chaozuo.java

📁 JAVA开发的酒店管理系统
💻 JAVA
字号:

import java.awt.*;
import javax.swing.*;
public class guanli_chaozuo extends JFrame{
public	JLabel jusername;
public	JLabel jpassword,jpassword_sure;
public	JTextField username;
  public JPasswordField password,password_sure;
public	JButton jb1,jb2;
	
public void	make_GUI(){

 jusername=new JLabel("用户名* ");
 jpassword=new JLabel("新密码* ");
 jpassword_sure=new JLabel("新密码确认*");
jb1=new JButton("确定");
jb2=new JButton("取消");
username=new JTextField(10);
password=new JPasswordField(10);
password_sure=new JPasswordField(10);
Container cp=getContentPane();
JPanel jp=new JPanel();
JPanel jp2 =new JPanel();
jp.setLayout(new GridLayout(4,8,20,10));
jp.add(jusername);jp.add(username);
jp.add(jpassword);jp.add(password);
jp.add(jpassword_sure);jp.add(password_sure);
jp2.add(jb1);
jp2.add(jb2);
cp.add(jp,BorderLayout.CENTER);
cp.add(jp2,BorderLayout.SOUTH);
setSize(300,200);
setVisible(true);	
}
public guanli_chaozuo(String s){
	super(s);
	make_GUI();
	
}

public void exit(){
		this.dispose();
            }
	

}

⌨️ 快捷键说明

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