How rahulan-mahendra/bus-booking works
This is a Java Swing bus-ticketing application for employee login, bus allocation/search, seat booking and seat-related lookups or updates. The visible workflow starts at the main menu, which opens passenger search or booking; other forms expose allocation, bus search and seat-management capabilities, but their menu wiring is not established by the excerpts. Several screens issue SQL against a MySQL database, and the shared connection helper configures that database. Unsampled form behavior and wiring are intentionally left unasserted.
Main entry points: Mainmenuform.java Main menu · search.java Passenger search · seats.java Seat booking · allocation.java Bus allocation
Components 11
Navigation and access
- Employee login
logininterface.java - Main menu
Mainmenuform.java - Passenger search
search.java
Bus operations
- Bus allocation
allocation.java - Bus search
bussearch.java
Booking and seats
- Seat booking
seats.java - View seats
viewseats.java - Update seats
update.java
Persistence
- MySQL connection
myconnection.java - MySQL database
Other components
- Employee
Connections 10
- Employee → Employee login: logs in
- Main menu → Passenger search: opens
Mainmenuform.java - Main menu → Seat booking: opens
Mainmenuform.java - Bus search → MySQL database: queries allocation
bussearch.java - View seats → MySQL database: reads seats
- Update seats → MySQL database: updates seats
- Bus allocation → MySQL database: stores allocation
- Passenger search → MySQL database: queries records
- Seat booking → MySQL database: reads customer
- MySQL connection → MySQL database: connects
myconnection.java