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

📄 adduserpane.java

📁 使用Java和sql开发的固定资产管理系统!
💻 JAVA
字号:
/*
 * 创建日期 2006-6-27
 *
 * TODO 要更改此生成的文件的模板,请转至
 * 窗口 - 首选项 - Java - 代码样式 - 代码模板
 */
package view;

import javax.swing.JPanel;

import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;

import contorl.UAControl;

public class AddUserPane extends JPanel {

	private JLabel namelbl = null;
	public JTextField nametex = null;
	private JLabel deplbl = null;
	public JTextField deptex = null;
	private JLabel notelbl = null;
	public JTextField notetex = null;
	public JButton addbtn = null;
	public JButton cancelbtn = null;
	private UAControl uac;
	/**
	 * This method initializes 
	 * 
	 */
	public AddUserPane() {
		super();
		initialize();
	}
	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
        notelbl = new JLabel();
        deplbl = new JLabel();
        namelbl = new JLabel();
        this.setLayout(null);
        namelbl.setText("姓名:");
        namelbl.setBounds(30, 40, 55, 30);
        deplbl.setBounds(210, 40, 55, 30);
        deplbl.setText("职务:");
        notelbl.setBounds(30, 140, 55, 30);
        notelbl.setText("备注:");
        this.setBounds(0, 0, 400, 300);
        this.add(namelbl, null);
        this.add(getNametex(), null);
        this.add(deplbl, null);
        this.add(getDeptex(), null);
        this.add(notelbl, null);
        this.add(getNotetex(), null);
        this.add(getAddbtn(), null);
        this.add(getCancelbtn(), null);
        uac=new UAControl(this);
        addbtn.addActionListener(uac);
        cancelbtn.addActionListener(uac);
			
	}
	/**
	 * This method initializes jTextField	
	 * 	
	 * @return javax.swing.JTextField	
	 */    
	private JTextField getNametex() {
		if (nametex == null) {
			nametex = new JTextField();
			nametex.setBounds(85, 40, 100, 30);
		}
		return nametex;
	}
	/**
	 * This method initializes jTextField1	
	 * 	
	 * @return javax.swing.JTextField	
	 */    
	private JTextField getDeptex() {
		if (deptex == null) {
			deptex = new JTextField();
			deptex.setBounds(265, 40, 100, 30);
		}
		return deptex;
	}
	/**
	 * This method initializes jTextField2	
	 * 	
	 * @return javax.swing.JTextField	
	 */    
	private JTextField getNotetex() {
		if (notetex == null) {
			notetex = new JTextField();
			notetex.setBounds(85, 140, 200, 30);
		}
		return notetex;
	}
	/**
	 * This method initializes jButton	
	 * 	
	 * @return javax.swing.JButton	
	 */    
	private JButton getAddbtn() {
		if (addbtn == null) {
			addbtn = new JButton();
			addbtn.setBounds(70, 240, 75, 30);
			addbtn.setText("添加");
		}
		return addbtn;
	}
	/**
	 * This method initializes jButton1	
	 * 	
	 * @return javax.swing.JButton	
	 */    
	private JButton getCancelbtn() {
		if (cancelbtn == null) {
			cancelbtn = new JButton();
			cancelbtn.setBounds(245, 240, 75, 30);
			cancelbtn.setText("清空");
		}
		return cancelbtn;
	}
     }  //  @jve:decl-index=0:visual-constraint="10,10"

⌨️ 快捷键说明

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