资源描述:
《Java课程设计报告-学籍管理系统代码》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、.//Student_Management_System.java//JHelpTextPanel.javaimportjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.event.*;importjava.io.*;//定义帮助文档类classJHelpTextPanelextendsJPanel{FontnewSmallTitleFont=newFont("楷体",Font.BOLD,12);JTextAreaHelpText=newJTextArea
2、();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_InforPanel.javaimportjava.awt.*;im
3、portjava.awt.event.*;importjavax.swing.*;importjavax.swing.event.*;importjava.io.*;classStudent_InforPanelextendsJPanelimplementsActionListener{//四种常用字体的定义FontnewTitleFont=newFont("楷体",Font.BOLD,40);FontnewSmallTitleFont=newFont("楷体",Font.BOLD,25);FontnewCommonFont=new..Font("
4、宋体",Font.BOLD,20);FontnewSubMenuFont=newFont("宋体",Font.BOLD,15);FontNewSubMenuFont=newFont("宋体",Font.BOLD,10);//性别数组定义Stringos[]={"男","女"}; //定义确认对话框图标ImageIconthinker=newImageIcon("ICON//thinker.gif"); //定义学生信息管理系统面板菜单控件JLabelStudentSno_Clue=newJLabel("学号:");JLabelStudentN
5、ame_Clue=newJLabel("姓名:");JLabelStudentSex_Clue=newJLabel("性别:");JLabelStudentAge_Clue=newJLabel("年龄:");JLabelStudentClass_Clue=newJLabel("班级:");JLabelStudentDept_Clue=newJLabel("系别:");JTextFieldStudentSno_Input=newJTextField();JTextFieldStudentName_Input=newJTextField();Combo
6、BoxModelOthermode=newOtherAModel();JComboBoxStudentSex_Input=newJComboBox(Othermode);JTextFieldStudentAge_Input=newJTextField();JTextFieldStudentClass_Input=newJTextField();JTextFieldStudentDept_Input=newJTextField();JTextAreaQueryInforShow=newJTextArea(); JLabelQueryClue=ne
7、wJLabel("以下是你要查询的学生信息:");JButtonAdd_StudentInformation=newJButton("增加学生信息");JButtonDel_StudentInformation=newJButton("删除学生信息");JButtonQuery_StudentInformation=newJButton("查询学生信息"); JButtonModify_StudentInformation=newJButton("修改学生信息"); //定义变量 intValidAge; StringSnoOrig
8、in; Student_InforPanel() {setBackground(Color.orange);Que