netbeans style hide/show panels and docking
I'd like to be able to hide and show panes similiar to the way the Netbeans IDE does it.
Basically, Netbeans has buttons on the left, bottom, and right to handle showing/hiding panes. When a button is clicked, it is removed from the left,bottom, or right, and the pane is placed in the proper location.
Or even simpler, I can just have the option in the "View" menu. Here's the catch. I'm using Netbeans 5's matisse layout to build my main window. Is there a common way to accomplish this? Or any sample code someone can point me to that's compatible with the matisse layout manager?
Thanks