Eclipse+Java+Swing+Mysql实现网上订餐系统【建议收藏】(下)

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云数据库 RDS MySQL,高可用系列 2核4GB
RDS MySQL Serverless 高可用系列,价值2615元额度,1个月
简介: Eclipse+Java+Swing+Mysql实现网上订餐系统【建议收藏】

AdminFrm.java

/*
 * AdminFrm.java
 *
 * Created on __DATE__, __TIME__
 */
package com.sjsq.client;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
/**
 * 管理员主页面模块
 * 
 * @author __USER__
 */
public class AdminFrm extends javax.swing.JFrame {
  /** Creates new form AdminFrm */
  public AdminFrm() {
    initComponents();
    // 设置最大化
    //this.setExtendedState(JFrame.MAXIMIZED_BOTH);
    this.setBounds(500, 500, 1200, 700);// 设置大小
    // 设置frame居中显示
    this.setLocationRelativeTo(null);
  }
  /**
   * This method is called from within the constructor to initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is always
   * regenerated by the Form Editor.
   */
  // GEN-BEGIN:initComponents
  // <editor-fold defaultstate="collapsed" desc="Generated Code">
  private void initComponents() {
    table = new javax.swing.JDesktopPane();
    jMenuBar1 = new javax.swing.JMenuBar();
    jMenu1 = new javax.swing.JMenu();
    jmiGoodsAdd = new javax.swing.JMenuItem();
    jmiGoodsManage = new javax.swing.JMenuItem();
    jMenu3 = new javax.swing.JMenu();
    jmiDealOrder = new javax.swing.JMenuItem();
    jMenu4 = new javax.swing.JMenu();
    jmiModify = new javax.swing.JMenuItem();
    jmiExit = new javax.swing.JMenuItem();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("管理员主界面");
    jMenu1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/base.png"))); // NOI18N
    jMenu1.setText("套餐信息管理");
    jmiGoodsAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/add.png"))); // NOI18N
    jmiGoodsAdd.setText("新增套餐");
    jmiGoodsAdd.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        jmiGoodsAddActionPerformed(evt);
      }
    });
    jMenu1.add(jmiGoodsAdd);
    jmiGoodsManage.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/edit.png"))); // NOI18N
    jmiGoodsManage.setText("维护套餐");
    jmiGoodsManage.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        jmiGoodsManageActionPerformed(evt);
      }
    });
    jMenu1.add(jmiGoodsManage);
    jMenuBar1.add(jMenu1);
    jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/bookManager.png"))); // NOI18N
    jMenu3.setText("订单管理");
    jmiDealOrder.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/order2.png"))); // NOI18N
    jmiDealOrder.setText("订单处理");
    jmiDealOrder.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        jmiDealOrderActionPerformed(evt);
      }
    });
    jMenu3.add(jmiDealOrder);
    jMenuBar1.add(jMenu3);
    jMenu4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/about.png"))); // NOI18N
    jMenu4.setText("其他");
    jmiModify.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/modify.png"))); // NOI18N
    jmiModify.setText("修改密码");
    jmiModify.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        jmiModifyActionPerformed(evt);
      }
    });
    //jMenu4.add(jmiModify);
    jmiExit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/exit.png"))); // NOI18N
    jmiExit.setText("退出系统");
    jmiExit.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        jmiExitActionPerformed(evt);
      }
    });
    jMenu4.add(jmiExit);
    jMenuBar1.add(jMenu4);
    setJMenuBar(jMenuBar1);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addComponent(table, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addComponent(table, javax.swing.GroupLayout.DEFAULT_SIZE, 337, Short.MAX_VALUE));
    pack();
  }// </editor-fold>
    // GEN-END:initComponents
  // 订单处理操作
  private void jmiDealOrderActionPerformed(java.awt.event.ActionEvent evt) {
    DealOrderInterFrm dealOrderInterFrm = new DealOrderInterFrm();
    dealOrderInterFrm.setVisible(true);
    this.table.add(dealOrderInterFrm);
  }
  // 修改用户信息操作
  void jmiModifyActionPerformed(java.awt.event.ActionEvent evt) {
    AccountModifyInterFrm accountModify = new AccountModifyInterFrm();
    accountModify.setVisible(true);
    this.table.add(accountModify);
  }
  // 套餐维护管理
  private void jmiGoodsManageActionPerformed(java.awt.event.ActionEvent evt) {
    GoodsManageInterFrm goodsManageInterFrm = new GoodsManageInterFrm();
    goodsManageInterFrm.setVisible(true);
    this.table.add(goodsManageInterFrm);
  }
  // 套餐添加
  private void jmiGoodsAddActionPerformed(java.awt.event.ActionEvent evt) {
    GoodsAddInterFrm goodsAddInterFrm = new GoodsAddInterFrm();
    goodsAddInterFrm.setVisible(true);
    this.table.add(goodsAddInterFrm);
  }
  // 退出系统
  private void jmiExitActionPerformed(java.awt.event.ActionEvent evt) {
    int result = JOptionPane.showConfirmDialog(null, "是否退出点餐系统?");
    // System.out.println(result);
    if (result == 0)
      this.dispose();
  }
  /**
   * @param args
   *            the command line arguments
   */
  public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
      public void run() {
        new AdminFrm().setVisible(true);
      }
    });
  }
  // GEN-BEGIN:variables
  // Variables declaration - do not modify
  private javax.swing.JMenu jMenu1;
  private javax.swing.JMenu jMenu3;
  private javax.swing.JMenu jMenu4;
  private javax.swing.JMenuBar jMenuBar1;
  private javax.swing.JMenuItem jmiDealOrder;
  private javax.swing.JMenuItem jmiExit;
  private javax.swing.JMenuItem jmiGoodsAdd;
  private javax.swing.JMenuItem jmiGoodsManage;
  private javax.swing.JMenuItem jmiModify;
  private javax.swing.JDesktopPane table;
  // End of variables declaration//GEN-END:variables
}

UserOrderFrm.java

/*
 * UserFrm.java
 *
 * Created on __DATE__, __TIME__
 */
package com.sjsq.client;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
/**
 * 用户主界面
 * 
 * @author __USER__
 */
public class UserOrderFrm extends javax.swing.JFrame {
  /** Creates new form UserFrm */
  public UserOrderFrm() {
    initComponents();
    // 设置最大化
    //this.setExtendedState(JFrame.MAXIMIZED_BOTH);
    this.setBounds(500, 500, 1200, 700);// 设置大小
    // 设置frame居中显示
    this.setLocationRelativeTo(null);
  }
  // GEN-BEGIN:initComponents
  // <editor-fold defaultstate="collapsed" desc="Generated Code">
  private void initComponents() {
    table = new javax.swing.JDesktopPane();
    jMenuBar1 = new javax.swing.JMenuBar();
    jm_order = new javax.swing.JMenu();
    jmi_order = new javax.swing.JMenuItem();
    jMenu2 = new javax.swing.JMenu();
    jmi_checkOrder = new javax.swing.JMenuItem();
    jMenu3 = new javax.swing.JMenu();
    jmi_modify = new javax.swing.JMenuItem();
    jmiExit = new javax.swing.JMenuItem();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("用户点餐主界面");
    jm_order.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/order3.png"))); // NOI18N
    jm_order.setText("用户点餐");
    jmi_order.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/cart.png"))); // NOI18N
    jmi_order.setText("开始点餐");
    jmi_order.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        jmi_orderActionPerformed(evt);
      }
    });
    jm_order.add(jmi_order);
    jMenuBar1.add(jm_order);
    jMenu2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/search1.png"))); // NOI18N
    jMenu2.setText("订单详情");
    jmi_checkOrder.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/ok.png"))); // NOI18N
    jmi_checkOrder.setText("查看订单");
    jmi_checkOrder.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        jmi_checkOrderActionPerformed(evt);
      }
    });
    jMenu2.add(jmi_checkOrder);
    jMenuBar1.add(jMenu2);
    jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/about.png"))); // NOI18N
    jMenu3.setText("关于系统");
    jmi_modify.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/edit.png"))); // NOI18N
    jmi_modify.setText("修改密码");
    jmi_modify.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        jmi_modifyActionPerformed(evt);
      }
    });
    jMenu3.add(jmi_modify);
    jmiExit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/exit.png"))); // NOI18N
    jmiExit.setText("退出系统");
    jmiExit.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        jmiExitActionPerformed(evt);
      }
    });
    jMenu3.add(jmiExit);
    jMenuBar1.add(jMenu3);
    setJMenuBar(jMenuBar1);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addComponent(table, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addComponent(table, javax.swing.GroupLayout.DEFAULT_SIZE, 277, Short.MAX_VALUE));
    pack();
  }// </editor-fold>
    // GEN-END:initComponents
    // 修改用户信息按钮
  private void jmi_modifyActionPerformed(java.awt.event.ActionEvent evt) {
    AccountModifyInterFrm accountModify = new AccountModifyInterFrm();
    accountModify.setVisible(true);
    this.table.add(accountModify);
  }
  // 查看订单按钮
  private void jmi_checkOrderActionPerformed(java.awt.event.ActionEvent evt) {
    CheckOrderInterFrm CheckOrderInterFrm = new CheckOrderInterFrm();
    CheckOrderInterFrm.setVisible(true);
    this.table.add(CheckOrderInterFrm);
  }
  // 退出按钮
  private void jmiExitActionPerformed(java.awt.event.ActionEvent evt) {
    int result = JOptionPane.showConfirmDialog(null, "是否退出系统?");
    // System.out.println(result);
    if (result == 0)
      this.dispose();
  }
  // 点餐按钮
  private void jmi_orderActionPerformed(java.awt.event.ActionEvent evt) {
    OrderGoodsInterFrm orderGoodsInterFrm = new OrderGoodsInterFrm();
    orderGoodsInterFrm.setVisible(true);
    this.table.add(orderGoodsInterFrm);
  }
  /**
   * @param args
   *            the command line arguments
   */
  public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
      public void run() {
        new UserOrderFrm().setVisible(true);
      }
    });
  }
  // GEN-BEGIN:variables
  // Variables declaration - do not modify
  private javax.swing.JMenu jMenu2;
  private javax.swing.JMenu jMenu3;
  private javax.swing.JMenuBar jMenuBar1;
  private javax.swing.JMenu jm_order;
  private javax.swing.JMenuItem jmiExit;
  private javax.swing.JMenuItem jmi_checkOrder;
  private javax.swing.JMenuItem jmi_modify;
  private javax.swing.JMenuItem jmi_order;
  private javax.swing.JDesktopPane table;
  // End of variables declaration//GEN-END:variables
}

AccountModifyInterFrm.java

/*
 * AccountModify.java
 *
 * Created on __DATE__, __TIME__
 */
package com.sjsq.client;
import java.sql.Connection;
import javax.swing.JOptionPane;
import com.sjsq.common.User;
import com.sjsq.server.UserDao;
import com.sjsq.utils.DbUtil;
import com.sjsq.utils.StringUtil;
/**
 * 账号修改模块
 * 
 * @author __USER__
 */
public class AccountModifyInterFrm extends javax.swing.JInternalFrame {
  DbUtil dbUtil = new DbUtil();
  UserDao userDao = new UserDao();
  /** Creates new form AccountModify */
  public AccountModifyInterFrm() {
    initComponents();
    this.setLocation(320, 100);
    this.userNameTxt.setText(LogOnFrm.s_currentUser.getUserName());
  }
  /**
   * This method is called from within the constructor to initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is always
   * regenerated by the Form Editor.
   */
  // GEN-BEGIN:initComponents
  // <editor-fold defaultstate="collapsed" desc="Generated Code">
  private void initComponents() {
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jb_modify = new javax.swing.JButton();
    jb_reset = new javax.swing.JButton();
    userNameTxt = new javax.swing.JTextField();
    oldPasswordTxt = new javax.swing.JPasswordField();
    newPasswordTxt = new javax.swing.JPasswordField();
    newPasswordConfirmTxt = new javax.swing.JPasswordField();
    setClosable(true);
    setIconifiable(true);
    setTitle("账户信息修改");
    jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/userName.png"))); // NOI18N
    jLabel1.setText("用户名:");
    jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/password.png"))); // NOI18N
    jLabel2.setText("旧密码:");
    jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/new_password.png"))); // NOI18N
    jLabel3.setText("新密码:");
    jLabel4.setText("新密码确认");
    jb_modify.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/edit.png"))); // NOI18N
    jb_modify.setText("确认修改");
    jb_modify.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        jb_modifyActionPerformed(evt);
      }
    });
    jb_reset.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/reset.png"))); // NOI18N
    jb_reset.setText("重置");
    jb_reset.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        jb_resetActionPerformed(evt);
      }
    });
    userNameTxt.setEnabled(false);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout
        .createSequentialGroup()
        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
            .addGroup(layout.createSequentialGroup().addGap(37, 37, 37)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel1).addComponent(jLabel2).addComponent(jLabel3)
                    .addComponent(jLabel4))
                .addGap(35, 35, 35)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(newPasswordConfirmTxt, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(newPasswordTxt, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(oldPasswordTxt, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(userNameTxt, javax.swing.GroupLayout.Alignment.LEADING,
                        javax.swing.GroupLayout.DEFAULT_SIZE, 127, Short.MAX_VALUE)))
            .addGroup(layout.createSequentialGroup().addGap(47, 47, 47).addComponent(jb_modify)
                .addGap(18, 18, 18).addComponent(jb_reset, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        .addContainerGap(65, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addGap(41, 41, 41)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jLabel1).addComponent(userNameTxt, javax.swing.GroupLayout.PREFERRED_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGap(18, 18, 18)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jLabel2)
                .addComponent(oldPasswordTxt, javax.swing.GroupLayout.PREFERRED_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGap(18, 18, 18)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jLabel3)
                .addComponent(newPasswordTxt, javax.swing.GroupLayout.PREFERRED_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGap(12, 12, 12)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jLabel4).addComponent(newPasswordConfirmTxt,
                    javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGap(30, 30, 30)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jb_modify).addComponent(jb_reset))
            .addGap(40, 40, 40)));
    pack();
  }// </editor-fold>
    // GEN-END:initComponents
  private void jb_modifyActionPerformed(java.awt.event.ActionEvent evt) {
    String oldPassword = new String(this.oldPasswordTxt.getPassword());
    String newPassword1 = new String(this.newPasswordTxt.getPassword());
    String newPassword2 = new String(this.newPasswordConfirmTxt.getPassword());
    if (StringUtil.isEmpty(oldPassword)) {
      JOptionPane.showMessageDialog(null, "旧密码不能为空!");
      return;
    }
    if (StringUtil.isEmpty(newPassword1) || StringUtil.isEmpty(newPassword2)) {
      JOptionPane.showMessageDialog(null, "新密码不能为空!");
      return;
    }
    if (!newPassword1.equals(newPassword2)) {
      JOptionPane.showMessageDialog(null, "两次输入的密码不一致!");
      return;
    }
    User user = null;
    Connection con = null;
    try {
      con = dbUtil.getCon();
      user = new User(LogOnFrm.s_currentUser.getUserName(), oldPassword);
      if (userDao.login(con, user) != null) {
        user.setPassword(newPassword1);
        user.setId(LogOnFrm.s_currentUser.getId());
        int modifyNum = userDao.userModify(con, user);
        if (1 == modifyNum) {
          JOptionPane.showMessageDialog(null, "修改成功!");
          this.oldPasswordTxt.setText("");
          this.newPasswordTxt.setText("");
          this.newPasswordConfirmTxt.setText("");
        } else {
          JOptionPane.showMessageDialog(null, "修改失败,请重新输入");
        }
      } else {
        JOptionPane.showMessageDialog(null, "旧密码错误!请重新输入");
      }
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } finally {
      try {
        dbUtil.closeCon(con);
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    }
  }
  private void jb_resetActionPerformed(java.awt.event.ActionEvent evt) {
    this.oldPasswordTxt.setText("");
    this.newPasswordTxt.setText("");
    this.newPasswordConfirmTxt.setText("");
  }
  // GEN-BEGIN:variables
  // Variables declaration - do not modify
  private javax.swing.JLabel jLabel1;
  private javax.swing.JLabel jLabel2;
  private javax.swing.JLabel jLabel3;
  private javax.swing.JLabel jLabel4;
  private javax.swing.JButton jb_modify;
  private javax.swing.JButton jb_reset;
  private javax.swing.JPasswordField newPasswordConfirmTxt;
  private javax.swing.JPasswordField newPasswordTxt;
  private javax.swing.JPasswordField oldPasswordTxt;
  private javax.swing.JTextField userNameTxt;
  // End of variables declaration//GEN-END:variables
}


四、其他


1.其他系统实现


1.JavaWeb系统系列实现

Java+JSP实现学生图书管理系统


Java+JSP实现学生信息管理系统


Java+JSP实现用户信息管理系统


Java+Servlet+JSP实现航空订票系统


Java+Servlet+JSP实现新闻发布系统


Java+Servlet+JSP实现图书管理系统


Java+Servlet+JSP实现停车场管理系统


Java+Servlet+JSP实现学生信息管理系统


Java+Servlet+JSP实现学生选课管理系统


Java+Servlet+JSP实现学生成绩管理系统-1


Java+Servlet+JSP实现学生成绩管理系统-2


Java+Servlet+JSP实现宠物诊所管理系统


Java+SSM+JSP实现网上考试系统


Java+SSH+JSP实现在线考试系统


Java+SSH+JSP实现医院在线挂号系统


Java+Springboot+Mybatis+Bootstrap+Maven实现网上商城系统


2.JavaSwing系统系列实现

Java+Swing实现斗地主游戏


Java+Swing实现电影购票系统


Java+Swing实现图书管理系统


Java+Swing实现医院管理系统


Java+Swing实现考试管理系统


Java+Swing实现仓库管理系统-1


Java+Swing实现仓库管理系统-2


Java+Swing实现自助取款机系统


Java+Swing实现通讯录管理系统


Java+Swing实现停车场管理系统


Java+Swing实现学生信息管理系统


Java+Swing实现学生宿舍管理系统


Java+Swing实现学生选课管理系统


Java+Swing实现学生成绩管理系统


Java+Swing实现学校教材管理系统


Java+Swing实现学校教务管理系统


Java+Swing实现企业人事管理系统


Java+Swing实现电子相册管理系统


Java+Swing实现超市管理系统-TXT存储数据


Java+Swing实现自助取款机系统-TXT存储数据


Java+Swing实现宠物商店管理系统-TXT存储数据


3.运行项目

请点击以下链接,部署你的项目。


Eclipse如何导入JavaSwing项目超详细图文教程


Eclipse如何导入JavaSwing项目超详细视频教程


4.备注

如有侵权请联系我删除。


5.支持博主

如果您觉得此文对您有帮助,请点赞加关注加收藏。祝您生活愉快!




相关实践学习
每个IT人都想学的“Web应用上云经典架构”实战
本实验从Web应用上云这个最基本的、最普遍的需求出发,帮助IT从业者们通过“阿里云Web应用上云解决方案”,了解一个企业级Web应用上云的常见架构,了解如何构建一个高可用、可扩展的企业级应用架构。
MySQL数据库入门学习
本课程通过最流行的开源数据库MySQL带你了解数据库的世界。 &nbsp; 相关的阿里云产品:云数据库RDS MySQL 版 阿里云关系型数据库RDS(Relational Database Service)是一种稳定可靠、可弹性伸缩的在线数据库服务,提供容灾、备份、恢复、迁移等方面的全套解决方案,彻底解决数据库运维的烦恼。 了解产品详情:&nbsp;https://www.aliyun.com/product/rds/mysql&nbsp;
相关文章
|
6月前
|
负载均衡 算法 关系型数据库
大数据大厂之MySQL数据库课程设计:揭秘MySQL集群架构负载均衡核心算法:从理论到Java代码实战,让你的数据库性能飙升!
本文聚焦 MySQL 集群架构中的负载均衡算法,阐述其重要性。详细介绍轮询、加权轮询、最少连接、加权最少连接、随机、源地址哈希等常用算法,分析各自优缺点及适用场景。并提供 Java 语言代码实现示例,助力直观理解。文章结构清晰,语言通俗易懂,对理解和应用负载均衡算法具有实用价值和参考价值。
大数据大厂之MySQL数据库课程设计:揭秘MySQL集群架构负载均衡核心算法:从理论到Java代码实战,让你的数据库性能飙升!
|
2月前
|
SQL Java 关系型数据库
Java连接MySQL数据库环境设置指南
请注意,在实际部署时应该避免将敏感信息(如用户名和密码)硬编码在源码文件里面;应该使用配置文件或者环境变量等更为安全可靠地方式管理这些信息。此外,在处理大量数据时考虑使用PreparedStatement而不是Statement可以提高性能并防止SQL注入攻击;同时也要注意正确处理异常情况,并且确保所有打开过得资源都被正确关闭释放掉以防止内存泄漏等问题发生。
123 13
|
7月前
|
消息中间件 缓存 弹性计算
纯PHP+MySQL手搓高性能论坛系统!代码精简,拒绝臃肿
本内容分享了一套经实战验证的社交系统架构设计,支撑从1到100万用户的发展,并历经6次流量洪峰考验。架构涵盖客户端层(App、小程序、公众号)、接入层(API网关、负载均衡、CDN)、业务服务层(用户、内容、关系、消息等服务)、数据层(MySQL、Redis、MongoDB等)及运维监控层(日志、监控、告警)。核心设计包括数据库分库分表、多级缓存体系、消息队列削峰填谷、CQRS模式与热点数据动态缓存。同时提供应对流量洪峰的弹性伸缩方案及降级熔断机制,并通过Prometheus实现全链路监控。开源建议结构清晰,适合大型社交平台构建与优化。
300 11
|
4月前
|
人工智能 Java 关系型数据库
Java的时间处理与Mysql的时间查询
本文总结了Java中时间与日历的常用操作,包括时间的转换、格式化、日期加减及比较,并介绍了MySQL中按天、周、月、季度和年进行时间范围查询的方法,适用于日常开发中的时间处理需求。
|
6月前
|
开发框架 Java 关系型数据库
在Linux系统中安装JDK、Tomcat、MySQL以及部署J2EE后端接口
校验时,浏览器输入:http://[your_server_IP]:8080/myapp。如果你看到你的应用的欢迎页面,恭喜你,一切都已就绪。
510 17
|
7月前
|
关系型数据库 MySQL Linux
CentOS 7系统下详细安装MySQL 5.7的步骤:包括密码配置、字符集配置、远程连接配置
以上就是在CentOS 7系统下安装MySQL 5.7的详细步骤。希望这个指南能帮助你顺利完成安装。
1810 26
|
7月前
|
Ubuntu 关系型数据库 MySQL
在Ubuntu系统的Docker上安装MySQL的方法
以上的步骤就是在Ubuntu系统的Docker上安装MySQL的详细方法,希望对你有所帮助!
821 12
|
2月前
|
缓存 关系型数据库 BI
使用MYSQL Report分析数据库性能(下)
使用MYSQL Report分析数据库性能
133 3
|
2月前
|
关系型数据库 MySQL 数据库
自建数据库如何迁移至RDS MySQL实例
数据库迁移是一项复杂且耗时的工程,需考虑数据安全、完整性及业务中断影响。使用阿里云数据传输服务DTS,可快速、平滑完成迁移任务,将应用停机时间降至分钟级。您还可通过全量备份自建数据库并恢复至RDS MySQL实例,实现间接迁移上云。

推荐镜像

更多