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


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

Re: JButton sizing ?

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!novia!transit3.readnews.com!textspool2.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Tony B" <tony.b@THRWHITE.remove-dii-this>
Subject Re: JButton sizing ?
Message-ID <MODFh.22268$PW4.7236@fe03.news.easynews.com> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <45e69ad5$0$2449$db0fefd9@news.zen.co.uk>
References <45e69ad5$0$2449$db0fefd9@news.zen.co.uk>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 34
Date Wed, 27 Apr 2011 15:31:14 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918274 96.60.20.240 (Wed, 27 Apr 2011 10:31:14 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:31:14 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:1077

Show key headers only | View raw


  To: comp.lang.java.gui
----- Original Message ----- 
From: "Ian Wilson" <scobloke2@infotop.co.uk>
Newsgroups: comp.lang.java.gui
Sent: Thursday, March 01, 2007 9:20 AM
Subject: Re: JButton sizing ?


>> Thanks That works a treat. This seem a bit like writing hml using nested 
>> tables to get a design to look right !
>
> It is, except that HTML tables were originally intended for tabular data 
> not for layout, whereas JPanels and Layouts were always intended to be 
> used for layout and to be nestable. Perhaps it is more like nested DIVs 
> with CSS :-)

I must admit I find using css box model and <div> much easier it terms of 
controlling positoning/size/borders/margins, but maybe it gets easier with 
practice.

> If you don't like nesting layouts in this way, you can achieve the same 
> visual effect by using (the notoriously difficult) GridBagLayout, (the 
> popular) JGoodies FormLayout or (my favourite) MigLayout without the need 
> for nesting of layouts and panels.

Maybe I'll stick with the simpler layouts for now. I think I have a slightly 
better understanding now.
Thanks for your help.
Tony

---
 * 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 | NextPrevious in thread | Next in thread | Find similar


Thread

JButton sizing ? "Tony B" <tony.b@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: JButton sizing ? "Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
    Re: JButton sizing ? "TonyB" <tonyb@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: JButton sizing ? "Ian Wilson" <ian.wilson@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
    Re: JButton sizing ? "TonyB" <tonyb@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
      Re: JButton sizing ? "Ian Wilson" <ian.wilson@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
        Re: JButton sizing ? "Tony B" <tony.b@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: JButton sizing ? "Karsten Lentzsch" <karsten.lentzsch@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000

csiph-web