OK, I figured out what was causing the problem, but now I would like to make a third JOptionpane that asks "would you like to try again?". The program should not end until the user selects 'no'.
Thanks, all for your help. I am still wondering how to get a JOptionpane to persist. I want there to be a 'master' JOptionpane that asks something like 'would you like to try again?' and if no exit program. TIA.