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 / March 2006

Tip: Looking for answers? Try searching our database.

User interface and dimensions

Thread view: 
cmovva@gmail.com - 16 Mar 2006 23:43 GMT
Hi, iam first time user of swing and I created a GUI with all the
objects, but unable to give proper dimensions for the labels and lists.
When i give the dimensions with "setBounds" it is showing some weird
features with overlapping of one label in other or list. It would be
great if someone could tell me how to understand and give the proper
dimensions according to my choice for the labels and lists.

Thanks,
-C
Roedy Green - 16 Mar 2006 23:47 GMT
>Hi, iam first time user of swing and I created a GUI with all the
>objects, but unable to give proper dimensions for the labels and lists.
>When i give the dimensions with "setBounds"

You should not be using setBounds at all. Only Layout mangers use
those methods. You should be using layouts to decide the positions and
sizes of your components. See http://mindprod.com/jgloss/layout.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Thomas Weidenfeller - 17 Mar 2006 08:53 GMT
> Hi, iam first time user of swing and I created a GUI with all the
> objects, but unable to give proper dimensions for the labels and lists.
> When i give the dimensions with "setBounds" it is showing some weird
> features with overlapping of one label in other or list.

Use layout managers.

/Thomas

Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/



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.