Lee,
The setVisible(false) only hides the dialog, you can see that by doing a setVisible(true) and it comes right back, you need to do a dispose() to make it close and be available to the GC.
Les
Lee Lares wrote:Hello, I have JDialog and in that JDialog I have JPanel and in that JPanel i have button and i would like to close JDialog after pressing that button. I couldn't find any informations about this. Only thing i know is how to close that JPanel with but it closes only JPanel and JDialog still stays.