📄 addleechdominfo.java~4~
字号:
package cliniquemanager;
import javax.swing.*;
import java.sql.*;
import java.awt.*;
/**
* <p>Title: CliniqueManager</p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: shine</p>
*
* @author robin
* @version 1.0
*/
public class AddLeechdomInfo extends JDialog {
Container c = this.getContentPane();
JLabel jLabel1 = new JLabel();
JButton jButton2 = new JButton();
JLabel jLabel2 = new JLabel();
JTextField jTextField1 = new JTextField();
JButton jButton1 = new JButton();
JLabel jLabel3 = new JLabel();
JPasswordField jPasswordField1 = new JPasswordField();
JPasswordField jPasswordField2 = new JPasswordField();
JTextField jTextField2 = new JTextField();
JButton jButton3 = new JButton();
JLabel jLabel4 = new JLabel();
public AddLeechdomInfo(Frame owner, String title, boolean modal) {
super(owner, title, modal);
try {
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
jbInit();
pack();
} catch (Exception exception) {
exception.printStackTrace();
}
}
public AddLeechdomInfo() {
this(new Frame(), "添加药品信息", false);
}
private void jbInit() throws Exception {
c.setLayout(null);
this.setPreferredSize(new Dimension(350, 350));
this.getContentPane().setLayout(null);
jLabel1.setText("确认密码(*):");
jLabel1.setBounds(new Rectangle(30, 135, 101, 30));
jButton2.setBounds(new Rectangle(131, 251, 89, 29));
jButton2.setText("置空");
jLabel2.setText("用户名(*):");
jLabel2.setBounds(new Rectangle(32, 32, 97, 31));
jTextField1.setText("jTextField1");
jTextField1.setBounds(new Rectangle(130, 187, 190, 30));
jButton1.setBounds(new Rectangle(33, 252, 88, 29));
jButton1.setText("添加");
jLabel3.setText("真实姓名(*):");
jLabel3.setBounds(new Rectangle(29, 186, 101, 31));
jPasswordField1.setText("jPasswordField1");
jPasswordField1.setBounds(new Rectangle(130, 85, 190, 30));
jPasswordField2.setText("jPasswordField2");
jPasswordField2.setBounds(new Rectangle(130, 136, 190, 30));
jTextField2.setText("jTextField2");
jTextField2.setBounds(new Rectangle(130, 34, 190, 30));
jButton3.setBounds(new Rectangle(236, 252, 91, 31));
jButton3.setText("取消");
jLabel4.setText("密码(*):");
jLabel4.setBounds(new Rectangle(32, 83, 100, 31));
c.add(jLabel1);
c.add(jLabel2);
c.add(jTextField1);
c.add(jLabel3);
c.add(jPasswordField1);
c.add(jPasswordField2);
c.add(jTextField2);
c.add(jLabel4);
c.add(jButton1);
c.add(jButton2);
c.add(jButton3);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -