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/