资源描述:
《奖学金评定系统源代码》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、importjava.awt.*;importjava.awt.event.*;importjava.sql.*;importjavax.swing.event.*;importjavax.swing.*;publicclassmainFrameextendsJFrameimplementsActionListener{JPanelp;JLabelpic=newJLabel(newImageIcon("G:\奖学金评定系统\校门.jpg"));JSplitPanetop;JSplitPaneleft;JPanellabelLeft,lab
2、elRight;JButtonjb1,jb2,jb3,jb4,jchushihua,help,jgeshihua;JComboBoxjcom1,jcom2,jcom3,jcom4;JLabeljlab1,jlab2,jlab3,jlab4;JPaneljp1,jp2,jp3,jp4;JTextFieldjt,jtt;JPanelmark;mainFrame(){super("haha");Dimensionscreen=Toolkit.getDefaultToolkit().getScreenSize();this.setBounds((sc
3、reen.width-1000)/2,(screen.height-610)/2,1000,610);//窗口居中Containerc=this.getContentPane();labelLeft=newJPanel();//左边面板labelRight=newJPanel();//右边面板labelLeft.setLayout(newGridLayout(8,3,0,0));jp1=newJPanel();//信息入库jlab1=newJLabel(newImageIcon("G:\奖学金评定系统\信息入库.jpg"));jcom1=
4、newJComboBox(newString[]{"基本信息入库","分数入库"});jcom1.setFont(newFont("黑体",Font.CENTER_BASELINE,20));jb1=newJButton("确定");jb1.addActionListener(this);jb1.setSize(53,40);jp1.add(jlab1);jp1.add(jcom1);jp1.add(jb1);labelLeft.add(jp1);jp2=newJPanel();//查找信息17jlab2=newJLabel(newImage
5、Icon("G:\奖学金评定系统\信息查找.jpg"));jcom2=newJComboBox(newString[]{"姓名","学号"});jcom2.setFont(newFont("黑体",Font.CENTER_BASELINE,20));jt=newJTextField(6);jt.setFont((newFont("黑体",Font.CENTER_BASELINE,20)));jb2=newJButton("确定");jb2.addActionListener(this);jp2.add(jlab2);jp2.add(jco
6、m2);jp2.add(jt);jp2.add(jb2);labelLeft.add(jp2);jp3=newJPanel();jlab3=newJLabel(newImageIcon("G:\奖学金评定系统\统计结果.jpg"));//统计结果jcom3=newJComboBox(newString[]{"5","10","15","20","全部"});jcom3.setFont(newFont("黑体",Font.CENTER_BASELINE,20));jb3=newJButton("确定");jb3.addActionListe
7、ner(this);jp3.add(jlab3);jp3.add(jcom3);jp3.add(jb3);labelLeft.add(jp3);jp4=newJPanel();//删除信息jlab4=newJLabel(newImageIcon("G:\奖学金评定系统\删除信息.jpg"));jcom4=newJComboBox(newString[]{"学号","姓名"});jcom4.setFont(newFont("黑体",Font.CENTER_BASELINE,20));jb4=newJButton("确定");jb4.addA
8、ctionListener(this);jb4.setSize(53,40);jtt=newJTextField(6);jtt.setFont((newFont("