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

📄 opadd.java

📁 老师要求我们用java 做的学生信息管理系统
💻 JAVA
字号:
package collegems;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

public class Opadd extends JDialog {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自动生成方法存根
		final Opadd adddialog=new Opadd();
		adddialog.setVisible(true);
		adddialog.setSize(300,250);

	}
	public Opadd() {
		super();
		getContentPane().setLayout(null);
		setTitle("操作员添加");

		final JLabel label = new JLabel();
		label.setText("操作员名:");
		label.setBounds(31, 41, 74, 15);
		getContentPane().add(label);

		final JLabel label_1 = new JLabel();
		label_1.setText("    密码:");
		label_1.setBounds(31, 75, 74, 15);
		getContentPane().add(label_1);

		final JLabel label_2 = new JLabel();
		label_2.setText("确认密码:");
		label_2.setBounds(30, 105, 75, 15);
		getContentPane().add(label_2);

		final JLabel label_3 = new JLabel();
		label_3.setText("权限管理:");
		label_3.setBounds(31, 132, 74, 15);
		getContentPane().add(label_3);

		final JTextField Name = new JTextField();
		Name.setBounds(111, 39, 115, 20);
		getContentPane().add(Name);

		final JPasswordField Password = new JPasswordField();
		Password.setBounds(111, 71, 115, 20);
		getContentPane().add(Password);

		final JPasswordField Repassword = new JPasswordField();
		Repassword.setBounds(111, 101, 115, 20);
		getContentPane().add(Repassword);

		final JComboBox comboBox = new JComboBox();
		comboBox.setBounds(111, 128, 115, 23);
		getContentPane().add(comboBox);

		final JButton button = new JButton();
		button.setText("确认");
		button.setBounds(67, 171, 67, 29);
		getContentPane().add(button);

		final JButton button_1 = new JButton();
		button_1.setText("取消");
		button_1.setBounds(143, 171, 67, 29);
		getContentPane().add(button_1);
	}

}

⌨️ 快捷键说明

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