GitHunt
SK

skumalo0115-commits/flightbooking-Demo

+An easy-to-run Java Swing demo that lets users resolve airline domains to IPs and simulate seat selection in a lightweight desktop UI.

✈️ Flight Booking Demo

A tiny Java Swing app that simulates a flight booking UI and resolves airline domain IPs. Perfect for demos, classroom exercises, or quick UI experiments. πŸ’ΊπŸŒ

πŸ“ Short Description

An easy-to-run Java Swing demo that lets users resolve airline domains to IPs and simulate seat selection in a lightweight desktop UI.

🏷️ Suggested Topics

java swing desktop-app gui demo flight-booking dns networking ui

✨ Highlights

  • 🧭 Domain to IP resolver using InetAddress
  • πŸͺ‘ Seat selection buttons with confirmation prompts
  • πŸ–₯️ Simple Swing UI (no external dependencies)
  • 🧩 Single-file app (easy to read and extend)

βœ… Prerequisites

  • β˜• Java 8+ (JDK installed)
  • 🧰 Command-line tools (javac, java) in your PATH

Check your Java version:

java -version

πŸš€ Run the App

From the project root:

javac src/FlightBookingDemo.java
java -cp src FlightBookingDemo

πŸ§ͺ Optional: Build with Ant

If you prefer Ant and have it installed, you can use the provided build.xml:

ant

This will compile the project and generate build outputs per the Ant configuration.

πŸ§‘β€πŸ’» How to Use

  1. Enter an airline domain (e.g., flyair.co.za).
  2. Click Resolve IP to see resolved addresses.
  3. Choose a seat (1A, 1B, or 1C) and confirm your selection.

βš™οΈ Configuration Tips

  • Domain input: Any valid domain works; try example.com if you want a quick test.
  • Seat behavior: Once a seat is confirmed, the button is disabled for that session.
  • Networking: Resolution requires internet access or a resolvable local DNS entry.

🧩 Main Entry Point

  • src/FlightBookingDemo.java contains the Swing UI, event handlers, and main method.

πŸ—‚οΈ Project Structure

.
β”œβ”€β”€ src/
β”‚   └── FlightBookingDemo.java
β”œβ”€β”€ build.xml
└── manifest.mf

πŸ› οΈ Troubleshooting

  • β€œCould not resolve” error: Make sure the domain is valid and you have network access.
  • Compilation errors: Confirm you’re using Java 8+ and compiling from the repository root.
  • App doesn’t open a window: Ensure you’re running on a machine with a GUI environment.

πŸ“Œ Notes

  • This app is a demo and stores no data.
  • Seat selection disables the chosen seat for the current session.
  • The UI is intentionally minimal for learning and extension.

Enjoy flying! ✈️

skumalo0115-commits/flightbooking-Demo | GitHunt