Results 1 to 2 of 2
  1. #1
    kreyszig is offline Member
    Join Date
    Oct 2010
    Posts
    35
    Rep Power
    0

    Question What is calling LayoutManager.layoutContainer?

    Hi,

    so I have some code that calls setVisible for some JComponent instances. Inside the setVisible function, the layoutContainer function of the layout manager associated to the parent of the components is called, which is as expected, but then it is called another time after all the calls to setVisible exit and I don't understand where this call can come from. Does someone have an idea?

    Thanks!
    Last edited by kreyszig; 02-11-2011 at 03:01 PM.

  2. #2
    kreyszig is offline Member
    Join Date
    Oct 2010
    Posts
    35
    Rep Power
    0

    Default

    The reason I am asking this question is that I am using a custom layout manager for which I would like to "lock" the layout when I simply set the visibility of some components to false. So I wrote a function in the class of my layout manager to set the lock flag and I call this function before and after the call to setVisible(false), but it does not work because the layoutContainer function is called again after the calls to both setVisible(false) and my lock function exit.

    So my question is, is layoutContainer called from a timer or something similar?

Similar Threads

  1. calling a JSP from a JSP
    By ajincoep in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 02-02-2011, 09:31 AM
  2. question about LayoutManager
    By temyong in forum AWT / Swing
    Replies: 2
    Last Post: 12-30-2010, 03:04 PM
  3. LayoutManager Best Choice
    By 67726e in forum AWT / Swing
    Replies: 2
    Last Post: 11-10-2010, 02:59 AM
  4. Changing buttonsizes in layoutmanager
    By frederic202 in forum AWT / Swing
    Replies: 2
    Last Post: 03-23-2010, 06:08 PM
  5. What layoutmanager is suitable for forms.
    By Somelauw in forum AWT / Swing
    Replies: 9
    Last Post: 12-05-2009, 01:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •