好文档 - 专业文书写作范文服务资料分享网站

数据库课程设计报告:学生成绩管理系统

天下 分享 时间: 加入收藏 我要投稿 点赞

if(e.getSource()==button1){

if(a1.getText().equals(\

华刘刘

佳丹

勇宇丹

\\\

26 / 50

} }

}

}

new Chuangkou();

System.out.println(\请选择操作\ dispose();

else{ }

System.out.print(\输入错误\

窗口模块程序设计: //chuangkou.java package com.test;

import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; public

class

Zhuchuangkou

extends

Frame

ActionListener{ Button button1,tuichu; Panel p1,p2,p3; Label l1,l2,l3; TextField a1,a2; Box b1,b2,b3,b4,b5; Chaxun s;

public static void main(String[] args) { Zhuchuangkou test1=new Zhuchuangkou();

}

public Zhuchuangkou(){

27 / 50

implements

button1=new Button(\登陆\ tuichu=new Button(\退出\

p1=new Panel(); p2=new Panel(); p3=new Panel();

l1=new Label(\翰林学院学生成绩管理系统

\

b1=Box.createVerticalBox(); b1.add(l2);

b1.add(Box.createVerticalStrut(8)); b1.add(l3);

b2=Box.createVerticalBox();

28 / 50

l1.setFont(new Font(\宋体\ l1.setBackground(Color.green); l2=new Label(\管理员登录\ l3=new Label(\登录密码\ a1=new TextField(10); a2=new TextField(10); a2.setEchoChar('*');

b2.add(a1);

b2.add(Box.createVerticalStrut(8)); b2.add(a2);

b4=Box.createHorizontalBox(); b4.add(button1);

b4.add(Box.createHorizontalStrut(10)); b4.add(tuichu);

b3=Box.createHorizontalBox(); b3.add(b1);

b3.add(Box.createHorizontalStrut(10)); b3.add(b2);

b5=Box.createVerticalBox(); b5.add(b3);

b5.add(Box.createVerticalStrut(8)); b5.add(b4);

button1.addActionListener(this); p1.add(l1);

29 / 50

p2.add(b5);

add(p1,BorderLayout.NORTH); add(p2,BorderLayout.CENTER); add(p3,BorderLayout.PAGE_END); addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){ dispose();

}

});

setBackground(Color.blue); setBounds(10, 10, 1000, 500); setVisible(true); validate();

}

public void actionPerformed(ActionEvent e){ if(e.getSource()==tuichu){ System.exit(0);

}

if(e.getSource()==button1){

if(a1.getText().equals(\

旷华30 / 50

数据库课程设计报告:学生成绩管理系统

if(e.getSource()==button1){if(a1.getText().equals(\旷华刘刘佳丹勇宇丹\\\26/50}}}
推荐度:
点击下载文档文档为doc格式
27h129uoxw7b3ef97wu606i7k4ff8500zfg
领取福利

微信扫码领取福利

微信扫码分享