学生信息管理系统框架java,用JAVA编写一个学生信息管理系统

1,用JAVA编写一个学生信息管理系统1,需要分析 , 对学生信息可以进行什么操作,每个操作用什么技术2,先按需要搭建前台页面3,对学生信息进行逻辑功能模块分开实现4,存储学生用List就够了
2 , 学生信息综合查询管理系统 JAVA程序编写package test; import java.sql.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.border.*; import javax.swing.JOptionPane; class Add extends Panel implements ActionListener{ Connection con; Statement sql; Button b1,b2; TextField tf1,tf2,tf3,tf4,tf5,tf6; Box baseBox,bv1,bv2; Add(){ try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); } catch(ClassNotFoundException e){} try{ con=DriverManager.getConnection("jdbc:odbc:data","",""); sql=con.createStatement(); } catch(SQLException ee){} setLayout(new BorderLayout()); Panel p1=new Panel(); Panel p2=new Panel(); tf1=new TextField(16); tf2=new TextField(16); tf3=new TextField(16); tf4=new TextField(16); tf5=new TextField(16); tf6=new TextField(16); b1=new Button("录入"); b1.setBackground(Color.green); b2=new Button("重置"); b2.setBackground(Color.green); b1.addActionListener(this); b2.addActionListener(this); p1.add(b1); p1.add(b2); bv1=Box.createVerticalBox(); bv1.add(new Label("学号")); bv1.add(Box.createVerticalStrut(8)); bv1.add(new Label("姓名")); bv1.add(Box.createVerticalStrut(8)); bv1.add(new Label("性别")); bv1.add(Box.createVerticalStrut(8)); bv1.add(new Label("专业")); bv1.add(Box.createVerticalStrut(8)); bv1.add(new Label("年级")); bv1.add(Box.createVerticalStrut(8)); bv1.add(new Label("出生")); bv1.add(Box.createVerticalStrut(8)); bv2=Box.createVerticalBox(); bv2.add(tf1); bv2.add(Box.createVerticalStrut(8)); bv2.add(tf2); bv2.add(Box.createVerticalStrut(8)); bv2.add(tf3); bv2.add(Box.createVerticalStrut(8)); bv2.add(tf4); bv2.add(Box.createVerticalStrut(8)); bv2.add(tf
3,java 学生管理系统怎么写1.awt /swing2.jsp+javaimport java.applet.applet;import java.awt.*;import java.awt.event.*;import java.util.*;import java.lang.*;public class students extends applet implements actionlistener vector stuinf=new vector(); studentinf si; string xm; string bj; int i,j,xh,cj; static int mid; label prompt1=new label("学生成绩管理系统"); label prompt2=new label("用户:"); label prompt3=new label("密码:"); label prompt4=new label("班级:"); label prompt5=new label("成绩:"); textfield input1=new textfield(8); textfield input2=new textfield(8); textfield input3=new textfield(8); textfield input4=new textfield(8); button btn1=new button("登录"); button btn2=new button("增加"); button btn3=new button("修改"); button btn4=new button("删除"); public void init()setlayout(new gridlayout(6,3));add(new label());add(prompt1);add(new label());add(prompt2);add(input1);add(new label());add(prompt3);add(input2);add(btn1);add(prompt4);add(input3);add(new label());add(prompt5);add(input4);add(new label());add(btn2);add(btn3);add(btn4);prompt4.setvisible(false);prompt5.setvisible(false);input3.setvisible(false);input4.setvisible(false);btn2.setvisible(false);btn3.setvisible(false);btn4.setvisible(false);btn1.addactionlistener(this);btn2.addactionlistener(this);btn3.addactionlistener(this);btn4.addactionlistener(this); } public void actionperformed(actionevent e)if(e.getactioncommand()=="登录")string a,b;a=input1.gettext();b=input2.gettext();input1.settext("");if((a.equals("12")==true)&&(b.equals("12")==true))prompt2.settext("姓名:");prompt3.settext("学号:");prompt4.setvisible(true);prompt5.setvisible(true);input3.setvisible(true);input4.setvisible(true);btn2.setvisible(true);btn3.setvisible(true);btn4.setvisible(true);btn3.setenabled(false);btn4.setenabled(false);btn1.setlabel("查询");input1.settext("登录成功");input1.selectall();}elseinput2.settext("用户名或密码错");}if(e.getactioncommand()=="增加")boolean scucss=true;tryxingming();}catch(emptyexception as)input1.settext("姓名不能为空");scucss=false;}tryxh=integer.parseint(input2.gettext());}catch(numberformatexception m)input2.settext("学号为空或格式错");scucss=false;}bj=input3.gettext();trychengji();}catch(emptyexception as)cj=-1;}catch(overexception dd)input4.settext("应在0-100间");scucss=false;}catch(numberformatexception cm)input4.settext("成绩应为数据");scucss=false;}if(scucss==true)si=new studentinf(xm,xh,bj,cj);insert(si);}}if(e.getactioncommand()=="修改")xm=input1.gettext();xh=integer.parseint(input2.gettext());bj=input3.gettext();cj=integer.parseint(input4.gettext());si=new studentinf(xm,xh,bj,cj);stuinf.setelementat(si, mid);btn3.setenabled(false);}if(e.getactioncommand()=="删除")stuinf.removeelementat(mid);btn4.setenabled(false);input1.settext("删除成功");input2.settext("");input3.settext("");input4.settext("");}if(e.getactioncommand()=="查询")boolean right=true;tryxh=integer.parseint(input2.gettext());}catch(numberformatexception m)input2.settext("学号为空或格式错");right=false;}if(right==true)search(xh);btn3.setenabled(true);btn4.setenabled(true);}} } //查找方法 public void search(int k)booleanexist=false;int low=0;int high=stuinf.size()-1;while(low<=high)mid=(high+low)/2;studentinf a1=(studentinf) stuinf.elementat(mid);if(a1.getstuno()==k)si=(studentinf) stuinf.elementat(mid);string x = string.valueof(si.getstuno());exist=true;input1.settext(si.getname());input1.selectall();input2.settext("0"+x);input3.settext(si.getclassno());if(si.getlevel()==-1)input4.settext("未参加考试");elsestring y = string.valueof(si.getlevel());input4.settext(y);}break;}else if(a1.getstuno()low=mid+1; else high=mid-1; } if(exist==false) { input1.settext("无此学号学生信息"); input1.selectall(); } } //添加方法 public void insert(studentinf q) { int i=0; if(stuinf.isempty()==true) { stuinf.addelement(q); input1.settext(""); input2.settext(""); input3.settext(""); input4.settext(""); } else { studentinf xh; xh=(studentinf) stuinf.firstelement(); while(xh.getstuno() { i++; if(i xh=(studentinf) stuinf.elementat(i); else break; } if(xh.getstuno()==q.getstuno()) { input2.settext("此学生信息已存在"); input2.requestfocus(); input2.selectall(); } else { stuinf.insertelementat(q,i); input1.settext(""); input2.settext(""); input3.settext(""); input4.settext(""); } } } //异常类 class overexception extends exception { string over; } class emptyexception extends exception { string empty; } void xingming() throws emptyexception { if((input1.gettext()).equals("")) throw (new emptyexception()); else xm=input1.gettext(); } void chengji() throws overexception,emptyexception { if((input4.gettext()).equals("")) throw(new emptyexception()); else cj=integer.parseint(input4.gettext()); if(cj<0||cj>100) throw (new overexception()); } //学生信息类 public class studentinf { private string name; private int stuno; private string classno; private int level; studentinf(string xingming,int xuehao,string banji,int chengji) { name=xingming; stuno=xuehao; classno=banji; level=chengji; } public int getstuno() { return stuno; } public string getname() { return name; } public string getclassno() { return classno; } public int getlevel() { return level; } } }【学生信息管理系统框架java,用JAVA编写一个学生信息管理系统】

    推荐阅读