欢迎来到天天文库
浏览记录
ID:8543186
大小:27.15 KB
页数:34页
时间:2018-03-31
《java项目源码 学生信息管理系统(java project source code student information management system)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、java项目源码学生信息管理系统(Javaprojectsourcecodestudentinformationmanagementsystem)/*SQL2005databaseconnection,JDBCconnection,runthebest1280*1024resolution*superuser:Administratorpassword:111;ordinaryusers:111password:111enterthesystemcanmodifythepassword,thesuperusercannotbedeleted,ordina
2、ryuserscanbedeletedanddonothavethefunctionofaddanddeleteuser*maindesignpersonnel:*Kevin.S*payattentiontotheuseofSLQ2000:*1.modifydatabaseusernamepassword*2.addsthreepackagestoJCreator,*3."StringdriverName="com.microsoft.sqlserver.jdbc.SQLServerDriver";changedto"*String*driverName
3、="com.microsoft.jdbc.sqlserver.SQLServerDriver";Importjava.sql.*;Importjava.awt.*;Importjavax.swing.*;Importjava.awt.event.*;Importjavax.swing.border.*;Importjavax.swing.JOptionPane;Importjavax.swing.JLabel;Importjavax.swing.table.DefaultTableModel;Importjavax.swing.table.TableCo
4、lumn;Importjava.awt.event.MouseAdapter;//createlogininterfaceClassLoginFrameextendsJFrame{PublicstaticfinalintWIDTH=350;PublicstaticfinalintHEIGHT=160;PrivatestaticJTextFieldn_username;PrivatestaticJPasswordFieldn_pwd;PrivateJButtonloginBtn;PrivateJButtoncacelBtn;PrivateStringadm
5、in="Administrator"";PrivateBooleanIsAdmin=false;PublicLoginFrame(){SetTitle(welcometouseSKYstudentinformationmanagementsystem);SetSize(WIDTH,HEIGHT);SetLocation(450350);ImageIconic=newImageIcon("src/icon.JPG");SetIconImage(ic.getImage());ContainercontentPane=getContentPane();Thee
6、stablishmentofthepanel/containerJPaneltextPanel=newJPanel();Thenewusername/labelJLabelusername=newJLabel(username);Username.setVerticalAlignment(1);//TOPUsername.setHorizontalAlignment(2);//LEFTN_username=newJTextField("Administrator",10);//addadefaultsuperuserloginN_username.set
7、HorizontalAlignment(JTextField.CENTER);Username.setHorizontalAlignment(4);//RIGHTTextPanel.add(username);TextPanel.add(n_username);Thenewpassword/labelJLabelpassword=newJLabel("password");Password.setVerticalAlignment(0);//CENTERPassword.setHorizontalAlignment(2);N_pwd=newJPasswo
8、rdField(10);Password.setHorizontalAlignm
此文档下载收益归作者所有