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

📄 student_look.java

📁 一个关于图书馆管理系统的课程设计
💻 JAVA
字号:
//学生查管理系统
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
public class student_look extends JFrame implements ActionListener
{
	JButton b1;
	JButton b2;
	JButton b3;
	public  student_look()
	{
	super("学生查看管理系统");
	
	b1=new JButton("学生查询");
	b2=new JButton("修改密码");
	b3=new JButton("      退出      ");
	setLayout(new FlowLayout());
	add(b1);
	add(b2); 
	add(b3);
	b1.addActionListener(this);
	b2.addActionListener(this);
	b3.addActionListener(this);
	}
	public void actionPerformed(ActionEvent et)
	{
		if (et.getSource() == b1){
			dispose();
			student_look1 x=new student_look1();
			x.setVisible(true);
			x.setLocation(300,300);
			x.setSize(350,500);
		}
		else if(et.getSource()==b2){
			dispose();
			student_look2 x=new student_look2();
			x.setVisible(true);
			x.setLocation(300,300);
			x.setSize(350,500);
		}
		else{
			dispose();
			
		}
		 
	}	 
	public static void main(String args[])
	{	student_look x1=new student_look();
		x1.setVisible(true);
		x1.setLocation(300,300);
		x1.setSize(600,600);
	
	}
}
  

⌨️ 快捷键说明

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