This is a small desktop application I made for my flipped course project. The idea was to build something simple where a user can book a bus ticket, check the booked tickets, and cancel them if needed. I used basic Core Java and Swing because we were asked to use the concepts taught in class.
- Login page (just a basic username and password)
- Book a ticket by entering name, bus number, seats, date etc.
- View all the tickets that were saved
- Cancel a ticket using the ticket ID
- Tickets are saved as text files on the system
I wanted to make something simple but useful, and I thought a bus ticket booking idea would be easy to implement using Swing and file handling.
- Java (JDK)
- Swing for the interface
- File Handling for saving tickets
- HashMap for storing booked seat count temporarily
- Install Java JDK if not already installed.
- Open the project folder in VS Code (or any editor).
- Compile the file using: javac AdvancedBusBookingSystem.java
- Then run it using: java AdvancedBusBookingSystem
It should open a window where the login page appears first.
This is not a full-scale booking system. It's only for learning purposes.
I kept the code simple so I can understand and explain it during evaluation.
Nandani singh