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

📄 system_login.java

📁 Eclipse 3.1 下编写。自己编写
💻 JAVA
字号:
package ui;

import java.awt.Frame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import javax.swing.JButton;

public class System_Login extends Frame {

	private JLabel jLabel_name = null;
	private JLabel jLabel_password = null;
	private JTextField jTextField_name = null;
	private JPasswordField jPasswordField_password = null;
	private JButton jButton_ok = null;
	private JButton jButton_cancel = null;

	/**
	 * This is the default constructor
	 */
	public System_Login() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		jLabel_password = new JLabel();
		jLabel_password.setBounds(new java.awt.Rectangle(55,163,90,45));
		jLabel_password.setText("密码");
		jLabel_name = new JLabel();
		jLabel_name.setBounds(new java.awt.Rectangle(55,86,90,45));
		jLabel_name.setText("用户名");
		this.setLayout(null);
		this.setSize(418, 332);
		this.setTitle("Frame");
		this.add(jLabel_name, null);
		this.add(jLabel_password, null);
		this.add(getJTextField_name(), null);
		this.add(getJPasswordField_password(), null);
		this.add(getJButton_ok(), null);
		this.add(getJButton_cancel(), null);
	}

	/**
	 * This method initializes jTextField_name	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField_name() {
		if (jTextField_name == null) {
			jTextField_name = new JTextField();
			jTextField_name.setBounds(new java.awt.Rectangle(182,91,203,42));
		}
		return jTextField_name;
	}

	/**
	 * This method initializes jPasswordField_password	
	 * 	
	 * @return javax.swing.JPasswordField	
	 */
	private JPasswordField getJPasswordField_password() {
		if (jPasswordField_password == null) {
			jPasswordField_password = new JPasswordField();
			jPasswordField_password.setBounds(new java.awt.Rectangle(182,163,203,45));
		}
		return jPasswordField_password;
	}

	/**
	 * This method initializes jButton_ok	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton_ok() {
		if (jButton_ok == null) {
			jButton_ok = new JButton();
			jButton_ok.setBounds(new java.awt.Rectangle(60,250,95,50));
			jButton_ok.setText("确定");
		}
		return jButton_ok;
	}

	/**
	 * This method initializes jButton_cancel	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton_cancel() {
		if (jButton_cancel == null) {
			jButton_cancel = new JButton();
			jButton_cancel.setBounds(new java.awt.Rectangle(254,250,95,50));
			jButton_cancel.setText("取消");
		}
		return jButton_cancel;
	}

}  //  @jve:decl-index=0:visual-constraint="36,4"

⌨️ 快捷键说明

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