Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #4212

Re: JLabel property - set

From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: JLabel property - set
Message-ID <65501213-3f3b-45d0-aa44-292d8d2f698b@b2g2000prf.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <015fa801-ddb7-4fb9-a9e5-d3ce51a2b9d0@p10g200
Date 2011-04-27 15:49 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
On Sep 12, 5:15=A0pm, Sriram <sxb4...@gmail.com> wrote:
...
> =A0 =A0I am new to Swing and I am trying to break a string of labels that
> I have used the setBounds property

1) setBounds(Dimension) is a method, not a
property.
2) That is a fragile way to construct a GUI.
Did you ever pause to consider what will happen
to this GUI on a PC with a different screen size,
DPI, PLAF, OS, Java version...

The correct solution has already been mentioned.

*Layouts.*

> ...Sometimes I see that the labels are misaligned and not in
> their proper place when I tr
>
> something like this ...

Gee I'm not surprised.

--
Andrew Thompson
http://pscode.org/

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | Next | Find similar


Thread

Re: JLabel property - set "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:49 +0000

csiph-web