欢迎来到天天文库
浏览记录
ID:55631647
大小:109.00 KB
页数:40页
时间:2020-05-21
《JAVA设计的学生管理系统源代码.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
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();JHelpTextPanel(){
2、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.*;importjava.awt.event.*;importjavax.swing.*;im
3、portjavax.swing.event.*;importjava.io.*;classStudent_InforPanelextendsJPanelimplementsActionListener{//四种常用字体的定义FontnewTitleFont=newFont("楷体",Font.BOLD,40);FontnewSmallTitleFont=newFont("楷体",Font.BOLD,25);FontnewCommonFont=newFont("宋体",Font.BOLD,20);FontnewSubMenuFont=newFont("宋体",Font.BOLD,15);Fo
4、ntNewSubMenuFont=newFont("宋体",Font.BOLD,10);//性别数组定义Stringos[]={"男","女"}; //定义确认对话框图标ImageIconthinker=newImageIcon("ICON//thinker.gif"); //定义学生信息管理系统面板菜单控件JLabelStudentSno_Clue=newJLabel("学号:");JLabelStudentName_Clue=newJLabel("姓名:");JLabelStudentSex_Clue=newJLabel("性别:");JLabelStudentAge_Clue=
5、newJLabel("年龄:");JLabelStudentClass_Clue=newJLabel("班级:");JLabelStudentDept_Clue=newJLabel("系别:");JTextFieldStudentSno_Input=newJTextField();JTextFieldStudentName_Input=newJTextField();ComboBoxModelOthermode=newOtherAModel();JComboBoxStudentSex_Input=newJComboBox(Othermode);JTextFieldStudentAge_In
6、put=newJTextField();JTextFieldStudentClass_Input=newJTextField();JTextFieldStudentDept_Input=newJTextField();JTextAreaQueryInforShow=newJTextArea(); JLabelQueryClue=newJLabel("以下是你要查询的学生信息:");JButtonAdd_StudentInformation=newJButton("增加学生信息");JButtonDel_StudentInformation=newJButton("删除学生信息");JB
7、uttonQuery_StudentInformation=newJButton("查询学生信息"); JButtonModify_StudentInformation=newJButton("修改学生信息"); //定义变量 intValidAge; StringSnoOrigin; Student_InforPanel() {setBackground(Color.orange);QueryI
此文档下载收益归作者所有