peoplequeryframe.java

来自「学生信息管理系统」· Java 代码 · 共 61 行

JAVA
61 行
字号
package com.sccp.StudentMS.baseFrame;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;

public class PeopleQueryFrame extends JFrame {

	private JTextField textField;
	/**
	 * Launch the application
	 * @param args
	 */
	public static void main(String args[]) {
		try {
			PeopleQueryFrame frame = new PeopleQueryFrame();
			frame.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the frame
	 */
	public PeopleQueryFrame() {
		super();
		setTitle("人员查询");
		setBounds(100, 100, 407, 151);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		final JPanel panel = new JPanel();
		panel.setLayout(null);
		getContentPane().add(panel, BorderLayout.CENTER);

		final JLabel label = new JLabel();
		label.setText("请输入要查询人员的班级:");
		label.setBounds(58, 29, 164, 15);
		panel.add(label);

		textField = new JTextField();
		textField.setBounds(62, 73, 140, 20);
		panel.add(textField);

		final JButton button = new JButton();
		button.setText("确定");
		button.setBounds(286, 25, 75, 23);
		panel.add(button);

		final JButton button_1 = new JButton();
		button_1.setText("取消");
		button_1.setBounds(286, 71, 75, 23);
		panel.add(button_1);
		//
	}

}

⌨️ 快捷键说明

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