java学籍管理系统源代码
package zuoye;
//主类
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.util.Hashtable;
public class ManagerWindow extends JFrame implements ActionListener
{
InputStudent 基本信息录入=null;
ModifySituation 基本信息修改=null;
Inquest 基本信息查询=null;
Delete 基本信息删除=null;
JPanel pCenter,p,p9;
TextField txtName,txtPassword;
Label lblTitle,lblName,lblPassword;
Button btnSubmit,btnReset,guanbi;
Panel p1,p11,p12,p2,p13,p14,p15;
JMenuBar bar;
ImageIcon icon;
JMenu fileMenu;
JMenuItem 录入,修改,查询,删除,欢迎,退出,关于;
Container con=null;
Hashtable 基本信息=null;
File file=null;
CardLayout card=null;
JLabel label=null;
JLabel label2;
public ManagerWindow()
{
p=new JPanel();
lblName=new Label("管理员帐号:");
txtName=new TextField(10);
lblPassword=new Label("密 码:");
txtPassword=new TextField(10);
txtPassword.setEchoChar('*');
btnSubmit = new Button("提交");
btnReset = new Button("重置");
guanbi=new Button("关闭");
p11=new Panel();
p12=new Panel();
p13=new Panel();
p14=new Panel();
p15=new Panel();
p11.add(lblName);
p11.add(txtName);
p12.add(lblPassword);
p12.add(txtPassword);
txtName.addActionListener(this);
txtPassword.addActionListener(this);
p13.add(btnSubmit);
btnSubmit.setBackground(Color.YELLOW);
p13.add(btnReset);
btnReset.setBackground(Color.YELLOW);
p13.add(guanbi);
guanbi.setBackground(Color.YELLOW);
btnSubmit.addActionListener(this);
btnReset.addActionListener(this);
guanbi.addActionListener(this);
p.setLayout(new GridLayout(10,1));
p.add(p14);
p.add(p15);
p.add(p11);
p.add(p12);
p.add(p13);
p.setBackground(Color.gray);
p9=new JPanel();
icon=new ImageIcon("123.jpg");
label2=new JLabel(icon,JLabel.LEFT);
label=new JLabel("欢迎使用学生基本信息管理系统",JLabel.CENTER);
label.setF