Skip to content

Basic weather app making api calls and displaying in a U.I using JavaSwing

Notifications You must be signed in to change notification settings

murilo-l1/WeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeatherCheck App

Introduction

The Weather App is a simple Java-based application that provides users with real-time weather information given a location. It fetches weather data from an external API and displays it in a graphical user interface (GUI). Users can enter a location, and the app retrieves and presents weather details, including temperature, weather condition, humidity, and wind speed.

Technologies Used

The Weather App utilizes the following technologies and libraries:

  • Java 18
  • JSON Simple - Used to parse and read through JSON data
  • HTTPURLConnection: Java's built-in library for making HTTP requests to fetch data from external APIs.

Class Summaries

1.0. AppLauncher

Description: The AppLauncher class serves as the initializer for the GUI using the 'invokelater()' to initialize the thread and display the window generated in 'WeatherAppGui'.

2.0. WeatherAppGui

Description: The WeatherAppGui class represents the graphical user interface (GUI) of the Weather App. It is responsible for displaying weather information for the given location.

Summary: This class handles the layout and display of GUI components, including the text field, labels, search button, icons and the image of the weather. It also implements the user interface for entering a location and updating the weather information based on user input. 'Frontend'

3.0. WeatherAppApi

Description: The WeatherAppApi class handles the API calls used, using the first call to retrieve geocordinates from the inputted location and the second to get content that is going to be displayed on screen using the geocordinates retrived from the first call.

Summary: This class encapsulates the core functionality of the Weather App. Including methods that can call and retrieve information from the API's, fetch a connection to declare the requests to create a JSONObject that can be easily accessed in the GUI class. 'Backend'

About

Basic weather app making api calls and displaying in a U.I using JavaSwing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages