I attached my homework question about java programming .Could you write the source code to solve it

profilengoctran
ngoctran.homework.docx

2. Modify your program from Assignment # 7 part b by creating an interactive GUI

application that displays the list of the orders read in from the file (create a data file

using your CreateBankFile.java program which has a least 10 bank account records in it)

and the total number of bank accounts. When your program starts it will first read the

records from the Bank Account file and create an array of BankAcct objects. The user of

the application will then be able to have the bank accounts sorted (sorting the array of

BankAcct objects) in the list by either, Customer #, Customer name, or Customer

balance. Save your application as GUIBankAcctSorter.java.

The output from your program will look something like this:

Sample output follows:

C:\Users\Ngoc\Pictures\java1.png

When the application opens the user sees the above window displayed on

the monitor. The JTextArea control has been filled with the records read

in from the file and at the bottom it displays the total number of orders

read from the file. The user can scroll the JTextArea control to see those

records which are out of view. The following are a series of what the

window should look like when the user interacts with the program causing

specific events to occur.

C:\Users\Ngoc\Pictures\java2.png

When the user clicks on the Balance checkbox the records in the

JTextArea control are sorted in ascending order by Balance.

C:\Users\Ngoc\Pictures\java2.png

When the user clicks another check box, this time Name, the records are

sorted in ascending order by Name. Notice that the other 2 check boxes

become unchecked. The user can continue to use the application by

clicking on one of the other check boxes to have the records sorted in that

order.