Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2005

Tip: Looking for answers? Try searching our database.

something similar to a JTabbedPane

Thread view: 
Derek - 19 Nov 2005 17:04 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
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.