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

📄 system_manage.java

📁 一个关于图书馆管理系统的课程设计
💻 JAVA
字号:
//系统管理界面
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
public class system_manage extends JFrame implements ActionListener
{
	JButton b1;
	JButton b2;
	JButton b3;
	JButton b4;
	public  system_manage()
	{
	super("系统管理");
	setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //设定关闭窗体时退出程
	b1=new JButton("修改管理员信息");
	b2=new JButton("       备份       ");
	b3=new JButton("       恢复       ");
    b4=new JButton("       返回       ");
	//setLayout(new FlowLayout());
	setLayout(null);
	b1.setBounds(200,100,140,50);
	b2.setBounds(200,200,140,50);
	b3.setBounds(200,300,140,50);
	b4.setBounds(200,400,140,50);
	add(b1);
	add(b2); 
	add(b3);
	add(b4);
	b1.addActionListener(this);
	b2.addActionListener(this);
	b3.addActionListener(this);
	b4.addActionListener(this);
	}
	public void actionPerformed(ActionEvent et)
	{
		if (et.getSource() == b1){
			dispose();
			change_admini x=new change_admini();
			x.setVisible(true);
			x.setLocation(300,300);
			x.setSize(350,500);
		}
		else if(et.getSource()==b2){
			new myDialog11();
		}
		else if(et.getSource()==b3){
			new myDialog11();
		}
		else{
			dispose();
			student_system x1=new student_system();
			x1.setVisible(true);
			x1.setLocation(300,300);
			x1.setSize(600,600);
		}
		 
	}	 
	public static void main(String args[])
	{
		system_manage x1=new system_manage();
		x1.setVisible(true);
		x1.setLocation(300,300);
		x1.setSize(600,600);
	}
}
  

⌨️ 快捷键说明

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