Got myself in a bind trying to sort names with GUI entry
I hate to be a bother - I have to write a Java Program by Monday that does the following in a JFrame (GUI) format and I don't know where to start. Here's what I need to do, if it's possible:
* I need to be able to input first and last name from a GUI window - more than one set of first/last name.
*Have to have the ability to click on a button to sort by first or last name and/or ascending/descending.
I can get a bubble sort of an array to do that for me with a first name only but not in a GUI. I can't get past one name in GUI never mind a last name. This is what I have so far:
public class TestArray1 extends JFrame
public static void main(String args)
Scanner input=new Scanner(System.in);
"Enter a first name ", "Name Box", JOptionPane.INFORMATION_MESSAGE);
I'm pretty embarrassed by it - it's horrible and a hash of all of it. I have a book and Google to do this with - must have been out of my mind to say I would. HELP!!!