Going in the right direction for a Data Structures class project?
<p>Having an issue programming the event handling of this class.  Do not understand how to implement it in the GUI class.  This is not an graded assignment or has to be handed in.  This is simply some independent exercises to help with Java coding.  Here is some description of the problem asked:</p>

<p><strong>Create a Java GUI program which has one button, one text box and one textfield. When a user click on the button, the system should pop up a file selection window, which allows the user to select a file from the hard disk. After the file is selected, e.g., “ssn.txt”, your program should read input file “ssn.txt”. Inside the file each line represents a social security number.
The program first read all the ssns into the memory. If the format of a ssn is wrong in the file, your program should throw a SSNException object, and catch that Exception object, and display an error message for that line in text box.</strong>  </p>

<p>Here is some of my code:</p>

<pre><code>public class SSN_GUI extends JPanel implements ActionListener{

    public SSN_GUI(){

    makeObject();
    doTheLayout();
    theButton.addActionListener(this);

    }
    private JTextField inputSSN;
    private JButton theButton; 

    //Make all the Objects
    private void makeObject(){

        inputSSN = new JTextField(15);
        inputSSN.setEditable(true);
        theButton = new JButton();

        }

    //Layout all the Objects
    private void doTheLayout(){

        JPanel thePanel = new JPanel();
        thePanel.setLayout(new BorderLayout());
        thePanel.add(new JLabel("Enter Social Security Number: "));
        thePanel.add(inputSSN, "Center");
        thePanel.add(theButton, "North");
    }

    // Handle the button push
    public void actionPerformed(ActionEvent evt){
    }


}
</code></pre>
