SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Sean Keane wrote:Does this sound correct?
Sean Keane wrote:So where is the code that actually says that tells the JOptionPane that it is no longer needed? It seems that it is just made invisible and never actually destroyed?
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
If the user closes the dialog box rather than clicking the Connect or Exit button, we want to treat it as though they had clicked the Exit button. So we set the dialog to do nothing on close, and then we add a window listener to the dialog box
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Sean Keane wrote:I wonder should some locking be used here in order to guarantee that no race condition occurs?
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Why not just set it to be EXIT_ON_CLOSE?
luck, db
There are no new questions, but there may be new answers.
Darryl Burke wrote:Sean. you seem to be hung up on
Why not just set it to be EXIT_ON_CLOSE?
Read the API for JDialog#setDefaultCloseOperation(...). What are the valid parameters?
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD