• 大小: 483KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-13
  • 语言: Java
  • 标签:

资源简介

Java+SQLServer学生成绩管理系统

资源截图

代码片段和文件信息

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import java.sql.*;
import java.util.Vector;
public class AdmPanel extends JPanel implements ActionListenerItemListenerMouseListener
{
JButton b1b2b3b4b5b6;
JPanel p1p2pCenter;
CardLayout card=null;
JTextField t1=new JTextField(10)
               t2=new JTextField(10)
               t3=new JTextField(10)
               tt1=new JTextField(10)
               tt2=new JTextField(10)
               tt3=new JTextField(10);
ButtonGroup sex1=new ButtonGroup()
            sex2=new ButtonGroup();
JRadioButton radio1=new JRadioButton(“男“true)
             radio2=new JRadioButton(“女“);
JRadioButton r1=new JRadioButton(“男“true)
                 r2=new JRadioButton(“女“);
JComboBox yearmonthdateyymmddpost;


JTable table1table2;
Vector vectorColName1=new Vector()
       vectorColName2=new Vector();
Vector vector1=new Vector()
       vector2=new Vector();
DefaultTableModel model1=new DefaultTableModel(vectorColName10){
public boolean isCellEditable(int row int column)
        {
            return false;
        }
};
DefaultTableModel model2=new DefaultTableModel(vectorColName20){
 public boolean isCellEditable(int row int column)
         {
             return false;
         }

};

AdmPanel()
{
setLayout(new BorderLayout());

t1=new JTextField(10);
t2=new JTextField(10);
t3=new JTextField(10);
tt1=new JTextField(10);
tt2=new JTextField(10);
tt3=new JTextField(10);

sex1.add(radio1);
sex1.add(radio2);
sex2.add(r1);
sex2.add(r2);

year=new JComboBox();
month=new JComboBox();
date=new JComboBox();
yy=new JComboBox();
mm=new JComboBox();
dd=new JComboBox();
post=new JComboBox();

post.addItem(“助教“);
post.addItem(“讲师“);
post.addItem(“副教授“);
post.addItem(“教授“);
for(int i=1980;i<1995;i++)
year.addItem(i);
for(int i=1;i<=12;i++)
month.addItem(i);
for(int i=1;i<=31;i++)
date.addItem(i);
for(int i=1950;i<1995;i++)
yy.addItem(i);
for(int i=1;i<=12;i++)
mm.addItem(i);
for(int i=1;i<=31;i++)
dd.addItem(i);

year.addItemListener(this);
month.addItemListener(this);
yy.addItemListener(this);
mm.addItemListener(this);
post.addItemListener(this);

b1=new JButton(“学生信息管理“);
b2=new JButton(“教师信息管理“);
b3=new JButton(“输入“);
b4=new JButton(“删除“);
b5=new JButton(“输入“);
b6=new JButton(“删除“);

b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
b4.addActionListener(this);
b5.addActionListener(this);
b6.addActionListener(this);

JPanel p0=new JPanel();
p0.add(b1);
p0.add(b2);

pCenter=new JPanel();
card=new CardLayout();
pCenter.setLayout(card);
p1=createStuPanel();
p2=createTeaPanel();

pCenter.add(“学生信息管理“p1);
pCenter.add(“教师信息管

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      37678  2008-09-04 07:09  StudentManager.jar

     文件    1179648  2008-09-04 07:04  StudentManager_Data.MDF

     文件    1048576  2008-09-04 07:04  StudentManager_Log.LDF

     文件     467968  2009-01-05 12:47  课程设计报告.doc

     文件         81  2008-09-04 07:17  帐号与密码说明.txt

     文件        390  2000-08-21 09:41  StudentManager\.project

     文件        309  2000-08-21 13:32  StudentManager\.classpath

     文件        468  2000-08-21 18:40  StudentManager\bin\StudentManager.class

     文件        227  2000-08-21 14:12  StudentManager\bin\sysConfig.properties

     文件       4366  2008-09-04 06:43  StudentManager\bin\SqlManager.class

     文件       2180  2008-09-02 22:41  StudentManager\bin\Myframe.class

     文件       4024  2000-08-29 19:24  StudentManager\bin\Logon.class

     文件        493  2000-08-26 20:19  StudentManager\bin\StudentMain.class

     文件       2126  2008-09-03 14:42  StudentManager\bin\TeaPanel.class

     文件      17406  2000-08-29 19:24  StudentManager\bin\AdmPanel.class

     文件       2527  2000-08-29 08:12  StudentManager\bin\StuPanel.class

     文件       6165  2000-08-29 19:24  StudentManager\bin\CourseList.class

     文件       2705  2008-09-02 21:14  StudentManager\bin\ChooseList.class

     文件       3641  2000-08-28 15:39  StudentManager\bin\ModifyPassword.class

     文件        641  2000-08-29 19:24  StudentManager\bin\AdmPanel$1.class

     文件        641  2000-08-29 19:24  StudentManager\bin\AdmPanel$2.class

     文件       3892  2000-08-27 15:48  StudentManager\bin\StuInfo.class

     文件        781  2000-08-29 19:24  StudentManager\bin\MyTableRenderer.class

     文件        485  2000-08-29 19:24  StudentManager\bin\MyTable.class

     文件        619  2008-09-02 21:14  StudentManager\bin\MymyTable.class

     文件       3917  2000-08-29 17:47  StudentManager\bin\TeaInfo.class

     文件       3677  2008-09-03 23:33  StudentManager\bin\StoreScore.class

     文件        630  2008-09-03 23:33  StudentManager\bin\StoreScore$1.class

     文件        398  2008-09-03 23:33  StudentManager\bin\metable.class

     文件        805  2008-09-03 14:42  StudentManager\bin\TeaPanel$1.class

............此处省略22个文件信息

评论

共有 条评论