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


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

Re: Unpredictable Swing b

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Håkan Lane" <håkan.lane@THRWHITE.remove-dii-this>
Subject Re: Unpredictable Swing b
Message-ID <47060CE6.671A@operamail.com> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <792f9ea90bd1c@uwe>
References <792f9ea90bd1c@uwe>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 47
Date Wed, 27 Apr 2011 15:40:02 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918802 96.60.20.240 (Wed, 27 Apr 2011 10:40:02 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:40:02 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:2596

Show key headers only | View raw


  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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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