• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Closing JInternalFrame

 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm stuck on how to remove a JInternalFrame that has been minimised.

When its not minimised I just call remove(...) on its container, which works.

Also I mean, how do I do using code (triggered by button or menu etc etc) instead of manually pressing X on the JInternalFrame.

Thanks for any help.
 
Rob Camick
Ranch Hand
Posts: 2599
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When its not minimised I just call remove(...) on its container, which works.


Then I would restore the frame first and then remove it.

how do I do using code (triggered by button or menu etc etc)


Check out the API. There are various method for changing the state of the internal frame.
 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I had to use isIcon(), cause when you iconify it, it is no longer added to its container.

Then when it was iconified, I did setIcon(false);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic