java学籍管理系统源代码

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

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.setFont(new Font("TimesRoman",Font.BOLD,24));

label.setForeground(Color.red);

p9.setOpaque(true);

p9.add(label);

p9.add(label2);

录入=new JMenuItem("录入学生基本信息");

修改=new JMenuItem("修改学生基本信息");

查询=new JMenuItem("查询学生基本信息");

删除=new JMenuItem("删除学生基本信息");

欢迎=new JMenuItem("欢迎界面");

退出=new JMenuItem("退出");

关于=new JMenuItem("关于我们");

bar=new JMenuBar();

fileMenu=new JMenu("菜单选项");

fileMenu.add(录入);

fileMenu.add(修改);

fileMenu.add(查询);

fileMenu.add(删除);

相关文档
最新文档