Changing object parameter with event handler
<p>I'm trying to create an object and add it to an array I created as a parameter GUI object I constructed. For some reason I keep getting <em><strong>TheDates cannot be resolved to a Variable</strong></em>. </p>

<p>Object being constructed:</p>

<pre><code>public static void main(String[] args)
{
    DateDriver myDateFrame = new DateDriver();
}

//Constructor
public DateDriver()
{
    outputFrame = new JFrame();
    outputFrame.setSize(600, 500);
    outputFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    String command;
    Date [] theDates = new Date[100];    //this is the array I am having issues with
    int month, day, year;

    ...
}
</code></pre>

<p>This is where my problem with theDates is:</p>

<pre><code>public void actionPerformed(ActionEvent e) 
{    //The meat and Potatoes
     if ( e.getSource() == arg3Ctor) 
     {
        JOptionPane.showMessageDialog(null, "3 arg Constructor got it");
        int month = Integer.parseInt(monthField.getText());
        int day = Integer.parseInt(dayField.getText());
        int year = Integer.parseInt(yearField.getText());
        theDates[getIndex()] = new Date(month, day, year);//here is the actual issue
     }
}
</code></pre>

<p>I don't know if I'm over thinking it or what, I've tried making the array <em>static, public</em>, etc. I've also tried implementing it as <code>myDayeFrame.theDates</code>.</p>

<p>Any guidance is greatly appreciated </p>
