A JavaFX application that provides real-time weather updates for various cities, featuring a dynamic table and multithreading for efficient data fetching.
- Real-time weather updates every 5 seconds.
- Multithreading for optimized data fetching.
- Easy-to-use JavaFX interface with a dynamic table.
- Configurable thread count for performance tuning.
- Clone the repository:
git clone https://github.com/Omar-Mega-Byte/Java_Weather_Aggregator.git
- Configure JavaFX in your IDE.
- Compile and run:
javac --module-path /path/to/javafx-sdk/lib --add-modules javafx.controls,javafx.fxml com/example/weathergui/Main.java java --module-path /path/to/javafx-sdk/lib --add-modules javafx.controls,javafx.fxml com.example.weathergui.Main
- Enter the desired number of threads.
- Click Start Display to begin fetching weather data.
- Use the Stop button to halt the updates.
- Main: Manages GUI initialization, multithreading, and weather updates.
- WeatherData: Represents weather information for each city.
- API: Simulates fetching weather data (can be replaced with a real API).
- Modify the
CITIESarray inMainto add or remove cities. - Adjust the update frequency by modifying the
Thread.sleep()interval.
This project is licensed under the MIT License.
- Omar Ahmed
- Refaat Ismail
- Sara Ashraf
- Ahmed Hossam
- Ali Gomaa
- Ahmed Maghawry