Closing a window created with the Master/Detail Wizard in Netbeans

Hi , I have problem closing (hiding) a window that has been created with the master/detail form of Netbeans, this.setVisible(false) only hides the contents of the window not the window itself.Could someone please help?
mn202Asked:
Who is Participating?
 
objectsCommented:
could also try:

SwingUtilities.windowForComponent(this).setVisible(false);
0
 
objectsCommented:
you need somthing like:

window.setVisible(false);

if you can post the relevant code I can  give a more specific answer
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
mn202Author Commented:
Thanks for your help.The thing in this case, is that the wizard did  the coding for me and it was a bit confusing to find what I should setVisible to false.SwingUtitilites did the trick though.
0
 
objectsCommented:
yes, i'm not a fan of wizards
0
 
mn202Author Commented:
Me neither,but in this  specific case, it saved me some time.Thanks again.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.