* Action performed method that displays the about message.
* @param the_event The event, ignored.
*/
@Override
public void actionPerformed(final ActionEvent the_event) {
Contestant c = SignInGUI.getCurrentContestant();
ArrayList<Entry> contestantEntryList = c.getEntryList();
if(contestantEntryList.size() == 0){
Entry first_entry = c.getEntry1();
first_entry.setDescription(description.getText());
first_entry.setCategory((String)category.getSelectedItem());
first_entry.setDesign(draft.getdraft());
first_entry.setRelease(acceptStatus);
c.addEntryToList(first_entry);
Lists.saveData();
JOptionPane.showMessageDialog(null, "Thank you for submitting an entry! You have 2 entries left!");
dispose();
}
else if(contestantEntryList.size() == 1){
Entry second_entry = c.getEntry2();
second_entry.setDescription(description.getText());
second_entry.setCategory((String)category.getSelectedItem());
second_entry.setDesign(draft.getdraft());
second_entry.setRelease(acceptStatus);
c.addEntryToList(second_entry);
Lists.saveData();
JOptionPane.showMessageDialog(null, "Thank you for submitting an entry! You have 1 entry left!");
dispose();
}
else if(contestantEntryList.size() == 2){
Entry third_entry = c.getEntry3();
third_entry.setDescription(description.getText());
third_entry.setCategory((String)category.getSelectedItem());
third_entry.setDesign(draft.getdraft());
third_entry.setRelease(acceptStatus);
c.addEntryToList(third_entry);
Lists.saveData();
JOptionPane.showMessageDialog(null, "Thank you for submitting an entry! " +
"You have submitted the maximum number of 3 entries.");
dispose();
}