📄 dialog2.java~3~
字号:
package ct;import java.awt.*;import javax.swing.*;import com.borland.jbcl.layout.*;import java.awt.event.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class Dialog2 extends JDialog { JPanel jPanel1 = new JPanel(); XYLayout xYLayout1 = new XYLayout(); JTextField jTextField1 = new JTextField(); JLabel jLabel1 = new JLabel(); JPasswordField jPasswordField1 = new JPasswordField(); JPasswordField jPasswordField2 = new JPasswordField(); JLabel jLabel2 = new JLabel(); JLabel jLabel3 = new JLabel(); JTextField jTextField2 = new JTextField(); JTextField jTextField3 = new JTextField(); JButton jButton1 = new JButton(); public Dialog2(Frame frame, String title, boolean modal) { super(frame, title, modal); try { jbInit(); pack(); } catch(Exception ex) { ex.printStackTrace(); } } public Dialog2() { this(null, "", false); } private void jbInit() throws Exception { jPanel1.setLayout(xYLayout1); jLabel1.setFont(new java.awt.Font("Dialog", 0, 15)); jLabel1.setText("用户"); jLabel2.setFont(new java.awt.Font("Dialog", 0, 15)); jLabel2.setText("密码"); jLabel3.setFont(new java.awt.Font("Dialog", 0, 15)); jLabel3.setText("确认密码"); jTextField2.setText("头像"); jTextField3.setText("人物头像"); jButton1.setFont(new java.awt.Font("Dialog", 0, 15)); jButton1.setText("确定"); jButton1.addActionListener(new Dialog2_jButton1_actionAdapter(this)); jTextField1.setText(""); jPasswordField1.setText(""); jPasswordField2.setText(""); this.getContentPane().add(jPanel1, BorderLayout.CENTER); jPanel1.add(jTextField1, new XYConstraints(106, 15, 149, 37)); jPanel1.add(jPasswordField2, new XYConstraints(104, 107, 152, 42)); jPanel1.add(jLabel2, new XYConstraints(15, 62, 94, 34)); jPanel1.add(jLabel1, new XYConstraints(15, 15, 99, 38)); jPanel1.add(jLabel3, new XYConstraints(13, 109, 101, 38)); jPanel1.add(jTextField2, new XYConstraints(286, 17, 89, 85)); jPanel1.add(jButton1, new XYConstraints(289, 113, 89, 35)); jPanel1.add(jPasswordField1, new XYConstraints(105, 57, 152, 42)); jPanel1.add(jTextField3, new XYConstraints(7, 156, 385, 136)); } void jButton1_actionPerformed(ActionEvent e) { Dialog2 D=new Dialog2(); D.show(false); Dialog1 F=new Dialog1(); F.setLocation(350,250); F.show(true); this.dispose(); }}class Dialog2_jButton1_actionAdapter implements java.awt.event.ActionListener { Dialog2 adaptee; Dialog2_jButton1_actionAdapter(Dialog2 adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.jButton1_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -