The WeatherAppProject is a Java-based application that provides real-time weather updates and multi-day forecasts. It fetches data from the OpenWeather API and displays key weather parameters such as temperature, humidity, wind speed, and conditions. The application features an intuitive Swing-based GUI for a seamless user experience.
- Java (JDK 8+) - Core programming language
- Swing - GUI framework for desktop applications
- OpenWeather API - For fetching weather data
- Gson - JSON parsing library
- Current Weather & Multi-Day Forecast - Retrieve real-time weather data and forecasts.
- Unit Preferences - Switch between metric (Β°C, m/s) and imperial (Β°F, mph) units.
- Weather Alerts - Get notifications for high and low temperature thresholds.
- Persistent Settings - User preferences (units and notifications) are saved for future sessions.
Ensure you have Java JDK 8 or higher installed.
On Windows:
javac -cp "lib\gson-2.11.0.jar" -d bin src\*.javaOn Linux/macOS:
javac -cp "lib/gson-2.11.0.jar" -d bin src/*.javaOn Windows:
java -cp "bin;lib\gson-2.11.0.jar" WeatherSwingAppOn Linux/macOS:
java -cp "bin:lib/gson-2.11.0.jar" WeatherSwingApp- Check Current Weather - Enter a city name and view weather conditions instantly.
- Get Forecast - Select a city and number of days to receive weather predictions.
- Set Preferences - Adjust units (Celsius/Fahrenheit) and enable/disable weather alerts.
- Add Animated Weather Icons βοΈπ§οΈ
- Improve GUI Design with modern themes π¨
- Introduce Voice Commands for hands-free interaction ποΈ
- Implement Dark Mode for better UI experience π
- Ensure the
gson-2.11.0.jarfile is inside thelibfolder. - Check your API key settings in
WeatherAPIManager. - Use correct path separators (
;for Windows,:for Linux/macOS) when specifying the classpath.
Pull requests and issues are welcome! Feel free to improve the app or report bugs.
β If you find this project useful, don't forget to star this repository!