Part 1
Modify your Java application so that it is an easy-to-use GUI application where all of the interaction is performed on one screen. You will now take the individual components and translate them to a single interactive GUI interface using the following GUI components, container, the event listeners, and event subclasses to enhance your application as a more GUI-appropriate interface:
- GUI components
- Container
- Event listeners
- Event subclasses (at least 3–4 utilized)
- ActionEvent
- ItemEvent
- FocusEvent
- KeyEvent
- MouseEvent
- WindowEvent
- ActionPerformed Method
Part 2
The customer information that the customer must now enter that should be validated includes the following:
- Entered user name (must fill in a name)
- Entered at least one sub to order
- Selected all three attributes for sub (such as bread type, sub type, and sub size)
- Entered delivery address that includes street, city, state, and zip code
- Entered telephone number xxx-xxx-xxxx
In this assignment, you are adding in error handling to make sure the customer is filling in all of the required information.
To accomplish this task, you will be utilizing the following Java classes:
- Methods in the character class and StringBuilder class to validate and manipulate characters in a string
- Try… Catch for the exception handling of all input fields