Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1987
| From | "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Strange resizeing wit |
| Message-ID | <74e998be0c707@uwe> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1183977869.068626.322760@k79g2000hse.googlegroups.com> |
| Date | 2011-04-27 15:36 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui sirke.pippig@gmx.de wrote: .. >I'm using GridBagLayout to organize my components. GBL breaks down for components with no minimum size defined, or it might be that the problem occurs when components simply 'get too small'. I avoid GBL generally, and am a bit hazy on the details. In any case, I did a quick test changing (the one line needed changing to make that compilable &) the JTables with no data, for JTrees (which get default data automatically) and noted that the layout starts to behave as you describe you want. The left area has around 1/3, the right 2/3 - all the way from minimum size to full screen (1024x768). If you need this UI to behave even when those tables are empty, I suggest you look into setting not just preferred size, but also minimum and (go the hat trick) maximum sizes for the JTables or the JScrollPanes. HTH -- Andrew Thompson http://www.athompson.info/andrew/ Message posted via http://www.javakb.com --- * 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 | Next in thread | Find similar | Unroll thread
Strange resizeing with Gr "sirke.pippig" <sirke.pippig@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Strange resizeing wit "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Strange resizeing wit "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Strange resizeing wit "Tom Hawtin" <tom.hawtin@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: OT: Strange resizeing "Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Strange resizeing wit "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Strange resizeing wit "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
csiph-web