A beginner-friendly Java Swing desktop application that performs the addition of two numbers entered by the user. The app provides a simple graphical user interface (GUI) to input numbers and view the result instantly.
- Input two numbers
- Display the result of their addition
- Clear button to reset inputs and result
- Exit button to close the application
- Built using Java Swing
The application interface contains:
- Two text fields for user input (Enter the First value and Enter the Second value)
- A Result field to display the sum
- Three buttons: Add, Clear, and Exit
-
Clone the repository:
https://github.com/hema-priya-vadivel/Addition-of-numbers.git
-
Open the project in your Java IDE (IntelliJ, Eclipse, etc.)
-
Compile and run the NumberAddition.java file (located in the src folder)
-
Enter two numbers, click Add, and see the result
-
Use Clear to reset and Exit to close the app