欢迎来到天天文库
浏览记录
ID:39270635
大小:110.00 KB
页数:40页
时间:2019-06-29
《Java课程设计_学籍管理系统代码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Word格式//Student_Management_System.java//JHelpTextPanel.javaimportjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.event.*;importjava.io.*;//定义帮助文档类classJHelpTextPanelextendsJPanel{FontnewSmallTitleFont=newFont("楷体",Font.BOLD,12);JTextAreaHelp
2、Text=newJTextArea();JHelpTextPanel(){ setLayout(null); setBackground(Color.orange); HelpText.setBackground(Color.orange); HelpText.setForeground(Color.red); HelpText.setFont(newSmallTitleFont); HelpText.setBounds(0,0,600,600); add(HelpText);}}//Student_Infor
3、Panel.javaimportjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.event.*;importjava.io.*;classStudent_InforPanelextendsJPanelimplementsActionListener{//四种常用字体的定义FontnewTitleFont=newFont("楷体",Font.BOLD,40);FontnewSmallTitleFont=newFont("楷体",Fo
4、nt.BOLD,25);FontnewCommonFont=new完美整理Word格式Font("宋体",Font.BOLD,20);FontnewSubMenuFont=newFont("宋体",Font.BOLD,15);FontNewSubMenuFont=newFont("宋体",Font.BOLD,10);//性别数组定义Stringos[]={"男","女"}; //定义确认对话框图标ImageIconthinker=newImageIcon("ICON//thinker.gif"); //定义学生信息管理
5、系统面板菜单控件JLabelStudentSno_Clue=newJLabel("学号:");JLabelStudentName_Clue=newJLabel("姓名:");JLabelStudentSex_Clue=newJLabel("性别:");JLabelStudentAge_Clue=newJLabel("年龄:");JLabelStudentClass_Clue=newJLabel("班级:");JLabelStudentDept_Clue=newJLabel("系别:");JTextFieldStudentSn
6、o_Input=newJTextField();JTextFieldStudentName_Input=newJTextField();ComboBoxModelOthermode=newOtherAModel();JComboBoxStudentSex_Input=newJComboBox(Othermode);JTextFieldStudentAge_Input=newJTextField();JTextFieldStudentClass_Input=newJTextField();JTextFieldStudentDe
7、pt_Input=newJTextField();JTextAreaQueryInforShow=newJTextArea(); JLabelQueryClue=newJLabel("以下是你要查询的学生信息:");JButtonAdd_StudentInformation=newJButton("增加学生信息");JButtonDel_StudentInformation=newJButton("删除学生信息");JButtonQuery_StudentInformation=newJButton("查询学生信息");
8、 JButtonModify_StudentInformation=newJButton("修改学生信息"); //定义变量 intValidAge; StringSnoOrigin; Student_InforPanel() {setBackground(Colo
此文档下载收益归作者所有