Tony Burrows <to**@tonyburro ws.com> wrote in message news:<pa******* *************** ******@tonyburr ows.com>...
I need to add 2 or 3 dockable windows to an app, but I can't seem to find
anything that will do this.
Am I missing something simple, or do I need to write my own dockable class?
Tony
Depending on how simple your layout is you could try using
BorderLayout with you main app panel in the center and dockables
placed in the WEST, SOUTH or whatever position. You can set the size
(width or height) to zero to hide the docked panel.
Note, this won't work if you want dock OR floating windows, but you
could try having all the components in a dialog on a top-level panel
(or box, any container) then transfer that container from the dialog
(or JFrame) to the borderlayout panel/frame.
I have made this scheme work for simple dockable layouts (ie only one
window in any position N, S, E, W) but no draggable docks :-((
Hope this helps.
If not, could you provide more information on exactly what you trying
to acheive?
AJG.