disposing jinternalframe when not in use
I have a jinternalframe1 opened and when I click a button in this frame another Jinternalframe2 opens with no title bar.Now I want jinternalframe2 to automatically close(dispose) when I click any component(other than the button which opens jinternalframe2) in the jinternalframe1.
If i could get any help.
Re: disposing jinternalframe when not in use
I would start by looking at the methods available in InternalFrameListener. To get better help sooner, post a SSCCE (Short, Self Contained, Correct (Compilable), Example) that makes it clear where exactly you're stuck on implementing this.
Before you post code, please go through the http://www.java-forums.org/forum-gui...w-members.html and BB Code List - Java Programming Forum - Learn Java Programming