I'm having a problem with Swing not quite behaving as I think it should, and
any help from any Swing gurus out there would be appreciated.
here's excerpts from my code:
So here's my problem: if the first time I fill out the text field Competitor_entry_field I hit <return> twice in quick succession, two copies of the dialog box come up. I'd think this shouldn't happen, because (a) JOptionPane.showOptionDialog() is supposed to show a modal dialog box, so the second return shouldn't be processed until the first dialog box is dismissed, and (b) JOptionPane.showOptionDialog() is supposed to block, so the same
thread can't create a second dialog until the first returns, and another thread can't get to this code because my function is synchronized and still has the lock.
What am I missing here?