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


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

Re: problem with setting

From "Fred Kleinschmidt" <fred.kleinschmidt@THRWHITE.remove-dii-this>
Subject Re: problem with setting
Message-ID <J9GF80.Hr2@news.boeing.com> (permalink)
Newsgroups comp.lang.java.gui
References <1164735690.470933.19080@80g2000cwy.googlegroups.com>
Date 2011-04-27 15:26 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui

"Adam Sandler" <corn29@excite.com> wrote in message 
news:1164735690.470933.19080@80g2000cwy.googlegroups.com...
>
> Michael Dunn wrote:
>> try this
>
> Thanks for the reply.
>
> A couple of things... I thought GridBag was going in away in favor
> FormLayout.  Also, with regard to using setPreferredSize, see
> http://groups.google.com/group/comp.lang.java.gui/browse_thread/thread/199fe80825ff337/0e96c1a7ea07b03b
>
> So while your code works (thanks again!), I'm wondering what is the
> root cause behind why the original code doesn't.  If there's some
> serious issues regarding the use of GridBag and setPreferredSize, then
> perhaps another solution needs to be sought.
>
> Thanks!
>

The default layout manager for the content pane is a BorderLayout.
CENTERed objects will expand/contract as necessary
to fill the available space - BorderLayout ignores any positioning
or sizing information of its CENTER child.
-- 
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project

---
 * 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

problem with setting a pa "Adam Sandler" <adam.sandler@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: problem with setting "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: problem with setting "Adam Sandler" <adam.sandler@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
    Re: problem with setting "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
      Re: problem with setting "Adam Sandler" <adam.sandler@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
    Re: problem with setting "Oliver Wong" <oliver.wong@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
    Re: problem with setting "Fred Kleinschmidt" <fred.kleinschmidt@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: problem with setting "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: problem with setting "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: problem with setting "Adam Sandler" <adam.sandler@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: problem with setting "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
    Re: problem with setting "Adam Sandler" <adam.sandler@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000

csiph-web