下载资源后端资源详情
火车票系统管理代码.zip
大小:95.55KB
价格:37积分
下载量:0
评分:
5.0
上传者:m0_54570435
更新日期:2025-09-22

Java课程设计火车票系统管理源码

资源文件列表(大概)

文件名
大小
火车票系统管理代码/.idea/
-
火车票系统管理代码/.idea/.gitignore
50B
火车票系统管理代码/.idea/.name
13B
火车票系统管理代码/.idea/misc.xml
276B
火车票系统管理代码/.idea/modules.xml
269B
火车票系统管理代码/.idea/uiDesigner.xml
8.71KB
火车票系统管理代码/.idea/workspace.xml
3.6KB
火车票系统管理代码/out/
-
火车票系统管理代码/out/production/
-
火车票系统管理代码/out/production/TrainSystem/
-
火车票系统管理代码/out/production/TrainSystem/TraSystem/
-
火车票系统管理代码/out/production/TrainSystem/TraSystem/.idea/
-
火车票系统管理代码/out/production/TrainSystem/TraSystem/.idea/.gitignore
50B
火车票系统管理代码/out/production/TrainSystem/TraSystem/.idea/.name
11B
火车票系统管理代码/out/production/TrainSystem/TraSystem/.idea/misc.xml
177B
火车票系统管理代码/out/production/TrainSystem/TraSystem/.idea/modules.xml
265B
火车票系统管理代码/out/production/TrainSystem/TraSystem/.idea/workspace.xml
1.57KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Access$1.class
773B
火车票系统管理代码/out/production/TrainSystem/TraSystem/Access$2.class
1.69KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Access$3.class
810B
火车票系统管理代码/out/production/TrainSystem/TraSystem/Access$4.class
1.69KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Access.class
4.52KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Add$AddFrame$1.class
1.65KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Add$AddFrame.class
3.01KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Add.class
2.73KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/AddFrame$1.class
1.62KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/AddFrame.class
2.97KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/AllTrain.class
3.54KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Erase.class
3.12KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/EraseFrame$1.class
907B
火车票系统管理代码/out/production/TrainSystem/TraSystem/EraseFrame.class
1.87KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Find1$1.class
961B
火车票系统管理代码/out/production/TrainSystem/TraSystem/Find1.class
4.8KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Find2$1.class
943B
火车票系统管理代码/out/production/TrainSystem/TraSystem/Find2.class
4.67KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Purchase.class
3.45KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/PurchaseFrame$1.class
1.03KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/PurchaseFrame.class
1.94KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Refund.class
3.36KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/RefundFrame$1.class
1.01KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/RefundFrame.class
1.97KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Register.class
2.6KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/RegisterFrame$1.class
1.29KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/RegisterFrame.class
2.09KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/SaMainFrame$1.class
1.02KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/SaMainFrame$2.class
822B
火车票系统管理代码/out/production/TrainSystem/TraSystem/SaMainFrame$3.class
856B
火车票系统管理代码/out/production/TrainSystem/TraSystem/SaMainFrame$4.class
862B
火车票系统管理代码/out/production/TrainSystem/TraSystem/SaMainFrame$5.class
822B
火车票系统管理代码/out/production/TrainSystem/TraSystem/SaMainFrame$6.class
860B
火车票系统管理代码/out/production/TrainSystem/TraSystem/SaMainFrame.class
2.83KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/Ticket.class
3.96KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/TraSystem.iml
455B
火车票系统管理代码/out/production/TrainSystem/TraSystem/Update.class
2.54KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/UpdateFrame$1.class
1.33KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/UpdateFrame.class
2.5KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/UserInfo.class
3.51KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/UserMainFrame$1.class
852B
火车票系统管理代码/out/production/TrainSystem/TraSystem/UserMainFrame$2.class
971B
火车票系统管理代码/out/production/TrainSystem/TraSystem/UserMainFrame$3.class
1.03KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/UserMainFrame$4.class
1.1KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/UserMainFrame$5.class
1.03KB
火车票系统管理代码/out/production/TrainSystem/TraSystem/UserMainFrame.class
3.22KB
火车票系统管理代码/src/
-
火车票系统管理代码/src/TraSystem/
-
火车票系统管理代码/src/TraSystem/.idea/
-
火车票系统管理代码/src/TraSystem/.idea/.gitignore
50B
火车票系统管理代码/src/TraSystem/.idea/.name
11B
火车票系统管理代码/src/TraSystem/.idea/misc.xml
177B
火车票系统管理代码/src/TraSystem/.idea/modules.xml
265B
火车票系统管理代码/src/TraSystem/.idea/workspace.xml
1.57KB
火车票系统管理代码/src/TraSystem/Access.java
7.32KB
火车票系统管理代码/src/TraSystem/Add.java
6.45KB
火车票系统管理代码/src/TraSystem/AddFrame.java
4.74KB
火车票系统管理代码/src/TraSystem/AllTrain.java
2.79KB
火车票系统管理代码/src/TraSystem/Erase.java
2.7KB
火车票系统管理代码/src/TraSystem/EraseFrame.java
1.85KB
火车票系统管理代码/src/TraSystem/Find1.java
3.77KB
火车票系统管理代码/src/TraSystem/Find2.java
3.7KB
火车票系统管理代码/src/TraSystem/Purchase.java
3.02KB
火车票系统管理代码/src/TraSystem/PurchaseFrame.java
1.85KB
火车票系统管理代码/src/TraSystem/Refund.java
2.92KB
火车票系统管理代码/src/TraSystem/RefundFrame.java
1.93KB
火车票系统管理代码/src/TraSystem/Register.java
1.79KB
火车票系统管理代码/src/TraSystem/RegisterFrame.java
2.8KB
火车票系统管理代码/src/TraSystem/SaMainFrame.java
4.11KB
火车票系统管理代码/src/TraSystem/Ticket.java
2.79KB
火车票系统管理代码/src/TraSystem/TraSystem.iml
455B
火车票系统管理代码/src/TraSystem/Update.java
1.76KB
火车票系统管理代码/src/TraSystem/UpdateFrame.java
3.33KB
火车票系统管理代码/src/TraSystem/UserInfo.java
2.77KB
火车票系统管理代码/src/TraSystem/UserMainFrame.java
4.51KB
火车票系统管理代码/TrainSystem.iml
433B

资源内容介绍

Java课程设计火车票系统管理源码
//// Source code recreated from a .class file by IntelliJ IDEA// (powered by FernFlower decompiler)//package TraSystem;import java.awt.Component;import java.awt.EventQueue;import java.awt.Font;import java.awt.LayoutManager;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.Statement;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.border.EmptyBorder;public class Access extends JFrame { private static final long serialVersionUID = 1L; private JPanel contentPane; private JTextField textField; private JPasswordField passwordField; public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { Access frame = new Access(); frame.setVisible(true); frame.setResizable(false); } catch (Exception var2) { var2.printStackTrace(); } } }); } public Access() { this.setTitle("欢迎使用火车售票系统!"); this.setDefaultCloseOperation(3); this.setBounds(600, 300, 450, 355); this.contentPane = new JPanel(); this.contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); this.setContentPane(this.contentPane); JLabel label = new JLabel("用户登录"); label.setBounds(148, 30, 120, 40); label.setFont(new Font("微软雅黑", 1, 30)); JLabel lblNewLabel = new JLabel("用户名"); lblNewLabel.setBounds(59, 99, 45, 18); JLabel lblNewLabel_1 = new JLabel("密码"); lblNewLabel_1.setBounds(59, 181, 30, 18); this.textField = new JTextField(); this.textField.setBounds(127, 96, 165, 24); this.textField.setColumns(10); this.passwordField = new JPasswordField(); this.passwordField.setBounds(127, 178, 165, 24); JButton LoginInButton = new JButton("登陆"); LoginInButton.setBounds(127, 251, 70, 29); LoginInButton.setFont(new Font("微软雅黑", 1, 15)); LoginInButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String user = Access.this.textField.getText(); String pass = new String(Access.this.passwordField.getPassword()); try { boolean com = Access.this.UserLoginIn(user, pass); if (com) { JOptionPane.showMessageDialog((Component)null, "用户登录成功!"); UserMainFrame umf = new UserMainFrame(user); umf.setVisible(true); umf.setResizable(false); Access.this.dispose(); } else { JOptionPane.showMessageDialog((Component)null, "用户登录失败!"); } } catch (Exception var6) { var6.printStackTrace(); } } }); JButton RegisterButton = new JButton("注册"); RegisterButton.setBounds(229, 251, 70, 29); RegisterButton.setFont(new Font("微软雅黑", 1, 15)); RegisterButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { RegisterFrame rf = new RegisterFrame(); rf.setVisible(true); rf.setResizable(false); } }); JButton SaLoginInButton = new JButton("管理员登陆"); SaLoginInButton.setBounds(306, 175, 112, 29); SaLoginInButton.setFont(new Font("微软雅黑", 1, 15)); SaLoginInButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String user = Access.this.textField.getText(); String pass = new String(Access.this.passwordField.getPassword()); try { boolean com = Access.this.SaLoginIn(user, pass); if (com) { JOptionPane.showMessageDialog((Component)null, "管理员登录成功!"); SaMainFrame smf = new SaMainFrame(user); smf.setVisible(true); smf.setResizable(false); Access.this.dispose(); } else { JOptionPane.showMessageDialog((Component)null, "管理员登录失败!"); } } catch (Exception var6) { var6.printStackTrace(); } } }); this.contentPane.setLayout((LayoutManager)null); this.contentPane.add(lblNewLabel); this.contentPane.add(lblNewLabel_1); this.contentPane.add(this.passwordField); this.contentPane.add(this.textField); this.contentPane.add(LoginInButton); this.contentPane.add(RegisterButton); this.contentPane.add(SaLoginInButton); this.contentPane.add(label); } boolean UserLoginIn(String accountT, String passwordT) throws Exception { Class.forName("com.mysql.jdbc.Driver"); String url = "jdbc:mysql://localhost:3306/火车票售票系统?useSSL = false&useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC"; String username = "root"; String passwd = "root"; Connection conn = DriverManager.getConnection(url, username, passwd); Statement stmt = conn.createStatement(); String sql = "SELECT * FROM 用户信息"; ResultSet rs = stmt.executeQuery(sql); String account; String password; do { if (!rs.next()) { return false; } account = rs.getString(1); password = rs.getString(2); } while(!account.equals(accountT) || !password.equals(passwordT)); return true; } boolean SaLoginIn(String saaccountT, String passwordT) throws Exception { Class.forName("com.mysql.jdbc.Driver"); String url = "jdbc:mysql://localhost:3306/火车票售票系统?useSSL = false&useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC"; String username = "root"; String passwd = "root"; Connection conn = DriverManager.getConnection(url, username, passwd); Statement stmt = conn.createStatement(); String sql = "SELECT * FROM 管理员信息"; ResultSet rs = stmt.executeQuery(sql); String saaccount; String password; do { if (!rs.next()) { return false; } saaccount = rs.getString(1); password = rs.getString(2); } while(!saaccount.equals(saaccountT) || !password.equals(passwordT)); return true; }}

用户评论 (0)

发表评论

captcha

相关资源

STM32F103+四个VL53L0代码(2020新).zip

使用IIC总线模式驱动四个正点原子VL53L0模块,开发板使用F103ZET6,F1系列都通用,iic是软件模拟,再加四个普通IO,用来做初始化时的片选信号。

20.73MB14积分

CK3M(Power PMAC)常用官方手册

PMAC在运动控制卡领域和ACS、Trio排在第一梯队,这个品牌的控制器网上资源很少。就Power PMAC(CK3M)而言,比较推荐大家使用的资料是官方的《Power PMAC 5-Day Training》,这份文档很全面地介绍了PMAC的使用,无论零基础入门还是快速进阶都是很好的教材。如果在使用过程中遇到复杂问题,可以进一步查阅官方手册《Power PMAC IDE》、《Power PMAC Software Reference Manual》、《Power PMAC Users Manual》,以及国内代理商——北京泰诺德科技有限公司的《POWER PMAC初级技术培训》。

49.49MB49积分

中景园电子0.96OLED显示屏资料

中景园电子0.96OLED显示屏资料,内有取模教程,能够使显示屏显示用户想要显示的中文字符

57.6MB33积分

python flask+vue3+sqlite 前后端分离 简单个人博客网站项目源码

flask+vue3+sqlite 前后端分离 简单个人博客网站项目Vue3采用新的组件式API开发,axios后端接口请求。flask采用sqlalchemy管理数据库,采用token验证登陆信息。已实现文章列表显示,文章内容markdown渲染,文章内容创建,修改,删除。很适合用来入门学习,爱好研究。具体框架:前端:Vue3+vue-router+axios+v-markdown+bootstrap+tailwindcss后端:flask+sqlite+sqlalchemy特别说明:网页UI为开源静态HTML模板,于模板之家下载,在本资源中不提供原始HTML文件,如有需要请自行下载。

34.26MB22积分