posted 17 years ago
I have one main JFrame for my program which creates another JFrame, like a JOptionPane. However, I chose not to use a JOptionPane because the new Jframe contains a form in which the user enters some data.
My question is: how do I close this second JFrame when the user clicks the "OK" button? Is it possible without using a JOptionPane?