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

Tip: Looking for answers? Try searching our database.

SpringLayout Manager

Thread view: 
Tom - 18 Dec 2004 22:06 GMT
I am trying to develop a Java Program capable of showing a series of
JComboBoxes.  I have them all laid out using SpringLayout.  When one
ComboBox has "custom" selected I would like to show an additional  JComboBox
at the bottom of the Frame.  I can do this by making the frame large enough
to include all boxes and then using setVisible on the last one.  However, I
would instead like to make additional room available at the bottom of the
Framd and then show the last JComboBox.  I have tried changing the
Constraint on the contentPane which correctly resizes the frame but messes
up the position of the inition JComboBoxes.
Thank you for your help.
R
John McGrath - 19 Dec 2004 00:37 GMT
> I can do this by making the frame large enough to include all boxes
> and then using setVisible on the last one.  However, I would instead
> like to make additional room available at the bottom of the Framd and
> then show the last JComboBox.

You seem to be making a distinction between using setVisible() on the
JComboBox and "show"ing it.  Since show() is just a deprecated method
that does the same thing as setVisible(true), I do not understand the
difference.  Would you please try to be more specific about what you
are doing?  Perhaps you might include some code?

Signature

Regards,

John McGrath



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.