Answered step by step
Verified Expert Solution
Link Copied!

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. 

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions