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


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

Re: Unpredictable Swing b

From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: Unpredictable Swing b
Message-ID <792f9ea90bd1c@uwe> (permalink)
Newsgroups comp.lang.java.gui
References <4703B048.2C8B@softhome.net>
Date 2011-04-27 15:40 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
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