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 / January 2004

Tip: Looking for answers? Try searching our database.

Swapping JPanels

Thread view: 
Nick Howes - 10 Jan 2004 21:59 GMT
Hello all,
   I've got a Swing gui, and there's a JPanel in there. I want to be able
to have a number of JFrames, and be able to replace one with another, so
that an initial set of buttons in a JFrame can be replaced with another set.
I hope that makes sense. I know about TabbedPane but I don't want the tabs.

Ta!

Signature

Nick H

Brian Pipa - 11 Jan 2004 00:29 GMT
> Hello all,
>     I've got a Swing gui, and there's a JPanel in there. I want to be able
> to have a number of JFrames, and be able to replace one with another, so
> that an initial set of buttons in a JFrame can be replaced with another set.
> I hope that makes sense. I know about TabbedPane but I don't want the tabs.

Sounds like you want a cardlayout.

Brian

Signature

---
MP3 Automagic CD Cover Creator
http://maccc.filenabber.com

Nick Howes - 11 Jan 2004 00:34 GMT
> > I know about TabbedPane but I don't want the tabs.
> >
> Sounds like you want a cardlayout.

Your hearing is excellent, I think that's exactly what I need! thanks Brian,

Nick H
Andrew Thompson - 11 Jan 2004 04:44 GMT
| Hello all,
|     I've got a Swing gui, and there's a JPanel in there. I want to be able
| to have a number of JFrames, and be able to replace one with another, so
| that an initial set of buttons in a JFrame can be replaced with another set.
| I hope that makes sense.

Not completely, no.

| I know about TabbedPane but I don't want the tabs.

If you want a number of components in a single
screen space - CardLayout.

--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site


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.