package com.cnlbc.View;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.border.EmptyBorder;
import com.cnlbc.Dao.UserDao;
import com.cnlbc.Model.User;
import com.cnlbc.Util.DbUtil;
import com.cnlbc.Util.StringUtil;
import java.awt.Toolkit;
public class LoginView extends JFrame {
private JPanel contentPane;
private JTextField userName;
private JPasswordField userPassword;
private DbUtil dbUtil=new DbUtil();
private UserDao userDao=new UserDao();
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
LoginView frame = new LoginView();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public LoginView() {
setIconImage(Toolkit.getDefaultToolkit().getImage(LoginView.class.getReso
Java图书管理系统(Java+MySQL)
于 2023-06-06 09:33:44 首次发布