UNIVERSITY OF WEST ATTICA
SCHOOL OF ENGINEERING
DEPARTMENT OF COMPUTER ENGINEERING AND INFORMATICS
University of West Attica · Department of Computer Engineering and Informatics
Software Development Methodologies
Vasileios Evangelos Athanasiou
Student ID: 19390005
Supervision
Supervisor: Georgios Prezerakos, Professor
Co-supervisor: Angelos Georgoulas, Assistant Professor
Athens, June 2023
This guide explains how to set up, build, and run the project on your local machine.
Before you begin, ensure you have the following installed:
Java Development Kit (JDK): Version 8 or higher is required for Swing components.
NetBeans IDE: It is highly recommended to use NetBeans for the development of the code.
Open your terminal or command prompt and run:
git clone https://github.com/Software-Development-Methodologies/Event-Handling.git
cd Event-Handling/src- Open Project: Launch NetBeans and open the project directory containing the Exercise 4 source files.
- External Documentation: For additional information on how specific classes work, refer to the official Oracle documentation.
- Build: Right-click the project and select Build.
- Run: Press
F6or click the Run Project button.
The application focuses on the following cognitive subjects:
- Event Management: Handling user interactions.
- Listener Interfaces: Using
ActionListenerfor buttons andWindowListenerfor frame control. - Adapter Classes: Implementing window closing events efficiently.
- Conversion: Use
Integer.parseInt(String)to convert input from TextFields into integers. - Validation: Before executing operations, check that fields are filled and contain valid integers.
- Error Handling: If validation fails, display an appropriate error message in the application's Label.
- Recommended IDE: NetBeans.
- Window Management: Handle the window close (x) event appropriately depending on the specific frame used.
- User Input: Text fields return
String; convert to integers usingInteger.parseInt()for arithmetic operations.
