I have N number of panels that I need to switch between, only 1 panel being
visible at a time. But I do not
want Tabs shown. My first thought was to use a parent panel with a layout
of BorderLayout and place the
"active" panel in the CENTER location. As I needed to manually switch
between the panels, I could remove
the current center component and replace it with the next panel to show.
But that doesnt quite work. I always
see the first panel, but when switch to the others, I just get an empty
center area. Any ideas why this could be
the case or a better way to approach this problem? JTabbedPane capability
without the tabs. Thank you for
any help. derek
Wes Harrison - 19 Nov 2005 17:14 GMT
> I have N number of panels that I need to switch between, only 1 panel being
> visible at a time. But I do not
[quoted text clipped - 9 lines]
> without the tabs. Thank you for
> any help. derek
Have you looked at CardLayout?
Wes
Roedy Green - 19 Nov 2005 21:32 GMT
On Sat, 19 Nov 2005 09:04:39 -0800, "Derek"
<derekpw[nospam]@comcast.net> wrote, quoted or indirectly quoted
someone who said :
>I have N number of panels that I need to switch between, only 1 panel being
>visible at a time. But I do not
>want Tabs shown.
that's called a CardLayout. See
http://mindprod.com/jgloss/layout.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Derek - 19 Nov 2005 21:58 GMT
CardLayout ... yes, that looks exactly like what i need. i am a newbie to
swing and just missed that layout manager.
thanks for pointing me in the right direction. derek
>I have N number of panels that I need to switch between, only 1 panel being
>visible at a time. But I do not
[quoted text clipped - 9 lines]
> without the tabs. Thank you for
> any help. derek