Results 1 to 2 of 2
- 02-10-2011, 10:41 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 35
- Rep Power
- 0
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.
- 02-11-2011, 03:09 PM #2
Member
- Join Date
- Oct 2010
- Posts
- 35
- Rep Power
- 0
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
-
calling a JSP from a JSP
By ajincoep in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 02-02-2011, 09:31 AM -
question about LayoutManager
By temyong in forum AWT / SwingReplies: 2Last Post: 12-30-2010, 03:04 PM -
LayoutManager Best Choice
By 67726e in forum AWT / SwingReplies: 2Last Post: 11-10-2010, 02:59 AM -
Changing buttonsizes in layoutmanager
By frederic202 in forum AWT / SwingReplies: 2Last Post: 03-23-2010, 06:08 PM -
What layoutmanager is suitable for forms.
By Somelauw in forum AWT / SwingReplies: 9Last Post: 12-05-2009, 01:04 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks