Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2596
| From | "Håkan Lane" <håkan.lane@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Unpredictable Swing b |
| Message-ID | <47060CE6.671A@operamail.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <792f9ea90bd1c@uwe> |
| Date | 2011-04-27 15:40 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui Thanks a lot for all your posts. First of all, the address should be http://cafka.econ.au.dk/LMDG_Doc/launcher.jnlp and nothing else. I apologise for the mistake. The problem was solved by calling pack at the end for my subclass of JFrame holding the contents presented to the user. The problem of components not showing upon program start was thus avoided, but I have now reached a problem where a part of the layout (box with some buttons in the bottom row) does not show up when I close a "pop up" window. Can this thing be mitigated with the same type of commands? I supppose that I need to understand your points about concurrency to fully know how to deal with these nuisances. Hokan Lane Andrew Thompson wrote: > > H|Nkan Lane wrote: > >I have built an application based on JFrame and a BorderLayout with > >some added components. I have some very real problems with controlling > >how it behaves. Components are not necessarily shown until I resize the > >window. How do I solve that? > > There were some other good suggestions (especially the > SSCCE,) but I suspect a pack() or validate() at the end of > the initial widget construction and placement, will solve > this problem. > > >..I assume that it is some basic Swing > >methodology that I don't know. > > If I am correct, the same problem can also affect AWT. > > -- > Andrew Thompson > http://www.athompson.info/andrew/ > > Message posted via JavaKB.com > http://www.javakb.com/Uwe/Forums.aspx/java-gui/200710/1 --- * 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
Unpredictable Swing behav "Håkan Lane" <håkan.lane@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
Re: Unpredictable Swing b "Ian Wilson" <ian.wilson@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
Re: Unpredictable Swing b "Nigel Wade" <nigel.wade@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
Re: Unpredictable Swing b "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: Unpredictable Swing b "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: Unpredictable Swing b "Håkan Lane" <håkan.lane@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: Unpredictable Swing b "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: Unpredictable Swing b "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: Unpredictable Swing b "Håkan Lane" <håkan.lane@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: Unpredictable Swing b "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: Unpredictable Swing b "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
csiph-web