> How can I close JFrame from code?
> In my application If I select one JRadioBox, I want to close another
> JFrame as if I click on the high-rigth button X.
>
> How can I do?
You can call setVisible(false) on it, or you can call dispose() on it.
From the user's perspective, the window just disappears. But they have
different semantics from the programmer's side, so read the Javadocs for
both methods and see which one you want to use.
- Oliver
palmis - 27 Feb 2006 11:02 GMT