資源簡介
自己做的一個java成績管理系統(tǒng)GUI
功能:
1.成績錄入
2.成績查詢(支持查詢結(jié)果里面修改與刪除)
3.成績分析
成績分析主要是利用篩選功能選出滿足多種條件的學(xué)生。
對學(xué)生的成績信息按多種條件進行排序.
對學(xué)生的成績信息可以保存在本地文件夾下面。可保存排序后的結(jié)果.
代碼片段和文件信息
import?java.awt.FlowLayout;
import?java.awt.Font;
import?java.awt.event.ActionEvent;
import?java.awt.event.ActionListener;
import?java.awt.event.WindowAdapter;
import?java.awt.event.WindowEvent;
import?java.io.IOException;
import?javax.swing.JButton;
import?javax.swing.Jframe;
import?javax.swing.JLabel;
import?javax.swing.JOptionPane;
import?javax.swing.JPanel;
import?javax.swing.JTextField;
import?javax.swing.border.EtchedBorder;
import?成績信息.Student;
public?class?addJframe?extends?Jframe?implements?ActionListener{
private?JTextField?studentNameTextFieldstudentNumberTextField
testComputerFieldtestMathFieldtestEnglishFieldremarkTextField;
private?JPanel?testInfoPanelremarkPanel;
private?JButton?saveButtonclearButtonreturnButton;
public?addJframe(){
this.settitle(“成績學(xué)生錄入“);
JPanel?contentPanel?=?new?JPanel(null);
JPanel?studentInfoPanel?=?new?JPanel();
studentInfoPanel.setBounds(0?0?486?46);
studentInfoPanel.setBorder(new?EtchedBorder(EtchedBorder.LOWEREDnullnull));//設(shè)置面板邊框
FlowLayout?flowLayout?=?(FlowLayout)?studentInfoPanel.getLayout();//面板布局
flowLayout.setAlignment(FlowLayout.LEFT);//左對齊
contentPanel.add(studentInfoPanel);
JLabel?studentNameLabel?=?new?JLabel(“學(xué)生姓名:“);
studentNameLabel.setFont(new?Font(“微軟雅黑“Font.PLAIN15));
studentInfoPanel.add(studentNameLabel);
studentNameTextField?=?new?JTextField(10);
studentNameTextField.setFont(new?Font(“微軟雅黑“Font.PLAIN15));
studentInfoPanel.add(studentNameTextField);
JLabel?studentClassLabel?=?new?JLabel(“學(xué)生學(xué)號:“);
studentClassLabel.setFont(new?Font(“微軟雅黑“Font.PLAIN15));
studentInfoPanel.add(studentClassLabel);
studentNumberTextField?=?new?JTextField(10);
studentNumberTextField.setFont(new?Font(“微軟雅黑“Font.PLAIN15));
studentInfoPanel.add(studentNumberTextField);
testInfoPanel?=?new?JPanel();
testInfoPanel.setBounds(05848489);
testInfoPanel.setBorder(new?EtchedBorder(EtchedBorder.LOWEREDnullnull));//設(shè)置面板邊框
FlowLayout?flowLayout_1?=?(FlowLayout)?testInfoPanel.getLayout();//面板布局
flowLayout_1.setAlignment(FlowLayout.LEFT);//左對齊
contentPanel.add(testInfoPanel);
JLabel?testComputer?=?new?JLabel(“專業(yè)成績:“);//
testComputer.setFont(new?Font(“微軟雅黑“Font.PLAIN15));
testInfoPanel.add(testComputer);
testComputerField?=?new?JTextField(10);
testComputerField.setFont(new?Font(“微軟雅黑“Font.PLAIN15));
testInfoPanel.add(testComputerField);
JLabel?testMath?=?new?JLabel(“數(shù)學(xué)成績:“);//
testMath.setFont(new?Font(“微軟雅黑“Font.PLAIN15));
testInfoPanel.add(testMath);
testMathField?=?new?JTextField(10);
testMathField.setFont(new?Font(“微軟雅黑“Font.PLAIN15));
testInfoPanel.add(testMathField);
JLabel?testEnglish?=?new?JLabel(“英語成績:“);//
testEnglish.setFont(new?Font(“微軟雅黑“Font.PLAIN15));
testInfoPanel.add(testEnglish);
testEnglishField?=?new?JTextField(10);
testEnglishField.setFont(new?Font(“微軟雅黑“Font.PLAIN15
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-01-06?11:33??成績分析\
?????文件?????????301??2012-12-29?09:07??成績分析\.classpath
?????文件?????????388??2012-12-29?09:07??成績分析\.project
?????目錄???????????0??2012-12-29?09:07??成績分析\.settings\
?????文件?????????629??2012-12-29?09:07??成績分析\.settings\org.eclipse.jdt.core.prefs
?????目錄???????????0??2013-03-01?09:42??成績分析\bin\
?????文件????????5466??2013-03-01?09:42??成績分析\bin\GradeSolve.class
?????文件????????3186??2013-03-01?09:42??成績分析\bin\MainMenu.class
?????文件?????????944??2013-03-01?09:42??成績分析\bin\RongQi.class
?????文件?????????592??2013-03-01?09:42??成績分析\bin\addJfr
?????文件????????5034??2013-03-01?09:42??成績分析\bin\addJfr
?????文件?????????616??2013-03-01?09:42??成績分析\bin\analyseJfr
?????文件????????1028??2013-03-01?09:42??成績分析\bin\analyseJfr
?????文件???????12376??2013-03-01?09:42??成績分析\bin\analyseJfr
?????文件?????????805??2013-03-01?09:42??成績分析\bin\searchJfr
?????文件????????4781??2013-03-01?09:42??成績分析\bin\searchJfr
?????文件?????????637??2013-03-01?09:42??成績分析\bin\searchResult$1.class
?????文件????????5148??2013-03-01?09:42??成績分析\bin\searchResult.class
?????文件?????????643??2013-03-01?09:42??成績分析\bin\updataJfr
?????文件????????5294??2013-03-01?09:42??成績分析\bin\updataJfr
?????目錄???????????0??2013-03-01?09:42??成績分析\bin\成績信息\
?????文件????????1689??2013-03-01?09:42??成績分析\bin\成績信息\Student.class
?????文件?????????676??2013-03-01?09:42??成績分析\bin\成績信息\totalAnalyse.class
?????文件?????????151??2013-01-12?18:48??成績分析\input.dat
?????目錄???????????0??2013-01-05?00:41??成績分析\src\
?????文件????????5894??2013-01-06?08:26??成績分析\src\GradeSolve.java
?????文件????????2944??2013-01-04?23:59??成績分析\src\MainMenu.java
?????文件?????????352??2013-01-02?14:53??成績分析\src\RongQi.java
?????文件????????6220??2013-01-02?15:49??成績分析\src\addJfr
?????文件???????13356??2013-01-06?08:17??成績分析\src\analyseJfr
?????文件????????4392??2013-01-05?00:54??成績分析\src\searchJfr
............此處省略11個文件信息
- 上一篇:Android音樂播放器
- 下一篇:C0編譯器java實現(xiàn)
評論
共有 條評論