java注册登录
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.*;
public class 用户注册界面 implements ActionListener {
JFrame userLoginFrame = new JFrame("用户登录注册");
JPanel userLoginPanel = new JPanel();
JLabel userNameLabel = new JLabel("用户名");
JTextField userNameTextField = new JTextField(15);
JLabel userPasswordLabel = new JLabel("密码");
JPasswordField userPasswordField = new JPasswordField(15);
JButton loginButton = new JButton("登录");
JButton registerButton = new JButton("注册");
private int message=0;
public static String login="";
public 用户注册界面() {
userLoginFrame.add(userLoginPanel);
userLoginPanel.add(userNameLabel);
userLoginPanel.add(userNameTextField