package shixun.注册;
import java.sql.*;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class vipzhuche {
JFrame jFrame;
JPanel jPanel;
JLabel jLabel1, jLabel2, jLabel3, jLabel4, jLabel5, jLabel6,jLabel7;
JTextField jTextField, jTextField1, jTextField2, jTextField3, jTextField4,jTextField5;
JPasswordField jPasswordField1;
JButton jButton;
/*根据登录者的类型显示客户的基本信息,并且能够修改部分信息,例如昵称、手机号等;*/
public vipzhuche() {
jFrame = new JFrame("vip用户注册界面");
jPanel = new JPanel();
jFrame.add(jPanel);
jLabel4 = new JLabel("昵称");
jPanel.add(jLabel4);
jTextField1 = new JTextField(17);
jPanel.add(jTextField1);
jLabel6 = new JLabel("姓名");
jPanel.add(jLabel6);
jTextField3 = new JTextField(17);
jPanel.add(jTextField3);
jLabel5 = new JLabel("电话号码");
jPanel.add(jLabel5);
jTextField2 = new JTextField(17);
jPanel.add(jTextField2);
jLabel1 = new JLabel("用户名:");
jPanel.add(jLabel1);
jTextField = new JTextField(17);
jPanel.add(jTextField);
jLabel2 = new JLabel("密 码:");
jPanel.add(jLabel2);
jPasswordField1 = new JPasswordField(17);
jPanel.add(jPasswordField1);
jLabel3 =</
注册界面的普通用户与vip用户
最新推荐文章于 2022-07-23 14:59:25 发布
该博客展示了如何使用Java Swing库创建用户注册界面。两个类vipzhuche和zhuche分别实现了VIP用户和普通用户的注册,包括输入昵称、姓名、电话、用户名、密码和身份证号。注册信息将插入到名为superfbd的数据库表中,使用了MySQL数据库并处理了可能的异常。
摘要由CSDN通过智能技术生成