Write a Java GUI application that will capture a customer’s drink order. The application must capture a customer’s name and the drink ordered. A customer can order the following drinks: Coffee Tea Coke Beer Cider Wine Q.3.1 On the form, create a text field to capture the customer name and a combo box to allow the customer to select a drink order. Also, create a radio button that will not allow customers to order alcoholic drinks like beer, cider or wine. Q.3.2 When the submit button is clicked, save the customer name, drink ordered and if the customer is underage or not to a sequential file called drinks.txt. Q.3.3 Load the data from the drinks.txt file and populate the list box with the drink order information. Q.3.5 A user is not allowed to order an alcoholic drink if they are underage. A suitable error message must be displayed if this occurs.
Write a Java GUI application that will capture a customer’s drink order. The application must capture a customer’s name and the drink ordered. A customer can order the following drinks:
Coffee
Tea
Coke
Beer
Cider
Wine
Q.3.1
On the form, create a text field to capture the customer name and a combo box to allow the customer to select a drink order. Also, create a radio button that will not allow customers to order alcoholic drinks like beer, cider or wine.
Q.3.2 When the submit button is clicked, save the customer name, drink ordered and if the customer is underage or not to a sequential file called drinks.txt.
Q.3.3 Load the data from the drinks.txt file and populate the list box with the drink order information.
Q.3.5 A user is not allowed to order an alcoholic drink if they are underage. A suitable error message must be displayed if this occurs.



Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images









