资源简介

最近两天刚刚写完的程序,完美的界面,完善的数据库操作。初学java的同学可以看看

资源截图

代码片段和文件信息

package Starter;

import java.awt.event.*;
import java.awt.Color;
import java.awt.Container;
import java.awt.Font;
import java.awt.frame;
import java.awt.Rectangle;

import javax.swing.*;

import java.sql.*;
import java.io.File;

import stud.administrator.main.Main;
import stud.db_log.DatabaseManager;
import stud.db_log.Log;
import stud.general.main.GeneralMain;

public class loginSystem extends Jframe implements ActionListener {
/**
 * version 1.0
 */
private static final long serialVersionUID = 1L;
JPanel contentPane;
String user1;
int power;
String username;

JTextField usern = new JTextField();
JPasswordField pwd = new JPasswordField();
Jframe dl;
JLabel yhm = new JLabel() mm = new JLabel() jl = new JLabel();
JButton bt0 = new JButton() bt1 = new JButton();
Container con = new Container();
boolean bool = false;

public loginSystem(Jframe dl) {
this.dl = dl;
this.getContentPane().setLayout(null);
Icon icon = new ImageIcon(“images“ + File.separator + “dl.jpg“);
jl.setIcon(icon);
jl.setBounds(new Rectangle(0 0 480 320));
getContentPane().add(jl -1);
yhm.setText(“请输入用户名:“);
yhm.setFont(new Font(“Dialog“ 0 15));
yhm.setBounds(new Rectangle(110 90 149 40));
mm.setText(“请输入密码:“);
mm.setFont(new Font(“Dialog“ 0 15));
mm.setBounds(new Rectangle(110 170 149 40));
usern.setText(“ “);
usern.setFont(new Font(“Dialog“ 0 15));
usern.setBounds(new Rectangle(230 95 149 24));
usern.setBackground(new Color(53 37 252));
usern.setBorder(BorderFactory.createLineBorder(Color.black));
usern.addActionListener(this);
pwd.setText(““);
pwd.setEchoChar(‘*‘);
pwd.setFont(new Font(“Dialog“ 0 15));
pwd.setBackground(new Color(53 37 252));
pwd.setBounds(new Rectangle(230 175 150 24));
pwd.setBorder(BorderFactory.createLineBorder(Color.black));
pwd.addActionListener(this);
bt0.setText(“登  录 “);
bt0.setBackground(new Color(143 75 39));
bt0.setFont(new Font(“Dialog“ 0 15));
bt0.setBounds(new Rectangle(110 230 110 40));
bt0.addActionListener(this);
bt1.setText(“退出 “);
bt1.setBackground(new Color(143 75 39));
bt1.setFont(new Font(“Dialog“ 0 15));
bt1.setBounds(new Rectangle(270 230 110 40));
bt1.addActionListener(this);
getContentPane().add(yhm 0);
getContentPane().add(usern 0);
getContentPane().add(mm 0);
getContentPane().add(pwd 0);
getContentPane().add(bt0 0);
getContentPane().add(bt1 0);
this.setUndecorated(true);// 不显示标题栏
this.setResizable(false);
this.setState(frame.NORMAL);
this.settitle(““);
this.setBounds(new Rectangle(440 220 480 320));
this.setVisible(true);

usern.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
usern_actionPerformed(e);
}
});
usern.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(FocusEvent e) {
text1_focusLost(e)

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

     文件        347  2010-12-17 13:28  studentsystem\.classpath

     文件        389  2010-11-27 17:49  studentsystem\.project

     文件        629  2010-11-27 17:49  studentsystem\.settings\org.eclipse.jdt.core.prefs

     文件        668  2010-12-21 22:15  studentsystem\bin\Starter\ImageCanvas.class

     文件        717  2010-12-21 19:59  studentsystem\bin\Starter\loginSystem$1.class

     文件        677  2010-12-21 19:59  studentsystem\bin\Starter\loginSystem$2.class

     文件        681  2010-12-21 19:59  studentsystem\bin\Starter\loginSystem$3.class

     文件        715  2010-12-21 19:59  studentsystem\bin\Starter\loginSystem$4.class

     文件        677  2010-12-21 19:59  studentsystem\bin\Starter\loginSystem$5.class

     文件        681  2010-12-21 19:59  studentsystem\bin\Starter\loginSystem$6.class

     文件       7623  2010-12-21 19:59  studentsystem\bin\Starter\loginSystem.class

     文件       3149  2010-12-21 22:15  studentsystem\bin\Starter\Start.class

     文件        772  2010-12-21 19:58  studentsystem\bin\stud\administrator\main\ClassManager$1.class

     文件       1515  2010-12-21 19:58  studentsystem\bin\stud\administrator\main\ClassManager.class

     文件        778  2010-12-21 19:58  studentsystem\bin\stud\administrator\main\CourseManager$1.class

     文件       1641  2010-12-21 19:58  studentsystem\bin\stud\administrator\main\CourseManager.class

     文件       5069  2010-12-22 17:58  studentsystem\bin\stud\administrator\main\Interface.class

     文件        837  2010-12-21 20:39  studentsystem\bin\stud\administrator\main\Main$1.class

     文件       1968  2010-12-21 20:39  studentsystem\bin\stud\administrator\main\Main.class

     文件        778  2010-12-21 19:58  studentsystem\bin\stud\administrator\main\ResultManager$1.class

     文件       1526  2010-12-21 19:58  studentsystem\bin\stud\administrator\main\ResultManager.class

     文件        766  2010-12-21 19:58  studentsystem\bin\stud\administrator\main\RollManager$1.class

     文件       1531  2010-12-21 19:58  studentsystem\bin\stud\administrator\main\RollManager.class

     文件        766  2010-12-21 19:58  studentsystem\bin\stud\administrator\main\UserManager$1.class

     文件       1560  2010-12-21 19:58  studentsystem\bin\stud\administrator\main\UserManager.class

     文件       2406  2010-12-21 13:54  studentsystem\bin\stud\classes\addclass$1.class

     文件        902  2010-12-21 13:54  studentsystem\bin\stud\classes\addclass$2.class

     文件       4886  2010-12-21 13:54  studentsystem\bin\stud\classes\addclass.class

     文件       2898  2010-12-21 19:13  studentsystem\bin\stud\classes\alterclass$1.class

     文件       1685  2010-12-21 19:13  studentsystem\bin\stud\classes\alterclass$2.class

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

评论

共有 条评论