Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1582
| From | "Kenneth P. Turvey" <kenneth.p..turvey@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Using panels |
| Message-ID | <pan.2007.05.05.23.36.24.362870@squeakydolphin.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <thw_h.112005$cJ1.110482@newsfe13.lga> |
| Date | 2011-04-27 15:34 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui On Thu, 03 May 2007 18:48:09 -0700, Knute Johnson wrote: [Snip] > You are adding panel to jPanel1 but not to it's layout. Also I know that > the IDEs love GroupLayout but it is a pain to read and understand. > Why is panel not added in initComponents()? I think part of your > problem is calling add() on jPanel1 and not addComponent() on its layout. > And since we are talking about IDEs does it add the variable declarations > at the end of the class file or is that author's choice? Looking at it after reading this I switched to using the Box layout and simplified things a bit. That solved the problem. I'm still unsure of why the panel didn't show up, but the problem is solved. I have decided that using the group layout that the IDE selects by default is probably a bad idea unless there is some reason to justify it. The other layouts probably handle most tasks without a problem. Thanks. -- Kenneth P. Turvey <kt-usenet@squeakydolphin.com> XMPP: kpturvey@jabber.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 — Previous in thread | Find similar | Unroll thread
Using panels "Kenneth P. Turvey" <kenneth.p..turvey@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: Using panels "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: Using panels "Kenneth P. Turvey" <kenneth.p..turvey@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: Using panels "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: Using panels "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: Using panels "Kenneth P. Turvey" <kenneth.p..turvey@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: Using panels "Brandon McCombs" <brandon.mccombs@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: Using panels "Kenneth P. Turvey" <kenneth.p..turvey@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
csiph-web