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

📄 studentnews.java

📁 使用java编写的一个学生选课系统
💻 JAVA
字号:
package Srs;

import java.awt.Color;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JScrollPane;
import javax.swing.JTable;

public class StudentNews extends JFrame {

	private JPasswordField passwordField_1;
	private JPasswordField passwordField;
	private JTable table;
	/**
	 * Launch the application
	 * @param args
	 */
	public static void main(String args[]) {
		try {
			StudentNews frame = new StudentNews();
			frame.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the frame
	 */
	public StudentNews() {
		super();
		getContentPane().setLayout(null);
		setBounds(100, 100, 500, 375);
		this.setLocationRelativeTo(null);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		final JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(56, 81, 376, 52);
		getContentPane().add(scrollPane);

		table = new JTable();
		scrollPane.setViewportView(table);

		final JButton button = new JButton();
		scrollPane.setCorner(JScrollPane.UPPER_LEFT_CORNER, button);
		button.setText("New JButton");

		final JButton button_1 = new JButton();
		button_1.setText("提交修改");
		button_1.setBounds(91, 260, 106, 28);
		getContentPane().add(button_1);

		final JLabel label = new JLabel();
		label.setFont(new Font("", Font.BOLD, 15));
		label.setText("原密码:");
		label.setBounds(131, 154, 66, 18);
		getContentPane().add(label);

		final JLabel label_1 = new JLabel();
		label_1.setFont(new Font("", Font.BOLD, 15));
		label_1.setText("新密码:");
		label_1.setBounds(131, 200, 66, 18);
		getContentPane().add(label_1);

		passwordField = new JPasswordField();
		passwordField.setBounds(220, 150, 112, 22);
		getContentPane().add(passwordField);

		passwordField_1 = new JPasswordField();
		passwordField_1.setBounds(220, 199, 112, 22);
		getContentPane().add(passwordField_1);

		final JLabel label_2 = new JLabel();
		label_2.setFont(new Font("@华文楷体", Font.BOLD, 22));
		label_2.setText("个人信息修改");
		label_2.setBounds(171, 24, 161, 28);
		getContentPane().add(label_2);

		final JButton button_2 = new JButton();
		button_2.setText("返    回");
		button_2.setBounds(291, 260, 106, 28);
		getContentPane().add(button_2);

		final JLabel label_3 = new JLabel();
		label_3.setForeground(new Color(255, 0, 0));
		label_3.setFont(new Font("", Font.BOLD, 18));
		label_3.setText("注意:修改信息时必须输入原密码");
		label_3.setBounds(101, 294, 295, 29);
		getContentPane().add(label_3);
		//
	}

}

⌨️ 快捷键说明

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