Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program names SortNamesGUI.java to perform the following tasks: 1. Design a GUI application as shown in the document 2. There are three buttons
Write a program names SortNamesGUI.java to perform the following tasks: 1. Design a GUI application as shown in the document 2. There are three buttons in the GUI, Load File, Sort First Name, Sort Last Name: When the "Load File" button is clicked on, load names from the file then display the names in the first JTextArea When the "Sort First Name" is clicked on, sort names according to their first name, then last name, display the sorted names in the second JTextArea When the "Sort First Name" is clicked on, sort names according to their last name, then first name, display the sorted names in the third JTextArea 3. Handle exceptions. For example, file not found, or clicked on sort button before names are loaded.
Sorting Names Load FileSort First Name Data file Sort Last Name Soned based on last name Unsorted list Sorted based on first name Sorted based on last name
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started