Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #299
| From | "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Odd GUI behavior (Win |
| Message-ID | <hqOdnWsYCL69wOzYRVnyhw@bt.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1164638946.784423.5630@l39g2000cwd.googlegroups.com> |
| Date | 2011-04-27 15:26 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui Tandaina wrote: > Andrew Thompson wrote: >> Get rid of the setBounds.. >> >> Did you mention no use of pack()? >> >> Check the docs. for both pack() *and* validate() >> carefully, the code needs one or the other (and >> I always let the compiler to tell me which one!). > > I believe the rather heavy handed use of setSize (only for dialogs and > frames) is related to the lack of pack and validate? I'll need to read > up on those two. There isn't a single pack or validate anywhere. When > I remove the setsize from an example dialog and add pack I end up with > a tiny little box. I can expand that tiny box and see all the > components but I'm guessing (big leap huh?) that this indicates a bit > of a problem. > > My example dialog is in fact using layouts (Border to be exact) and > seems to be doing everything else properly. Not entirely sure why its > showing this behavior Is there any chance you could post the code for just that example dialog? (Ideally with any non-GUI logic removed and wrapped in a simple Class with a main() to invoke it.) --- * 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 — Previous in thread | Find similar
Odd GUI behavior (Windows "Tandaina" <tandaina@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: Odd GUI behavior (Win "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: Odd GUI behavior (Win "Tandaina" <tandaina@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: Odd GUI behavior (Win "Tandaina" <tandaina@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: Odd GUI behavior (Win "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: Odd GUI behavior (Win "Tandaina" <tandaina@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: Odd GUI behavior (Win "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
csiph-web