?? opadd.java
字號(hào):
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 自動(dòng)生成方法存根
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("確認(rèn)密碼:");
label_2.setBounds(30, 105, 75, 15);
getContentPane().add(label_2);
final JLabel label_3 = new JLabel();
label_3.setText("權(quán)限管理:");
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("確認(rèn)");
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);
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -