Propagating JPanel changes to ancestors
Hello,
Is there a clean way to propogate changes made to a JPanel (components being added,removed, resized..) to the ancestors, preferrably the top-level (internal) frame so i can call pack() to make it resize..
i was planning on building a system my self based on some kind of LayoutChangeHandler interface that you can register on a panel but wanted to check first if there wasn't something built in already
thanks a lot in advance!
[460 byte] By [
phonkera] at [2007-10-2 4:40:59]

that doesn't really solve the problem
i have a JPanel in a JInternalFrame which visibility depends on the state of a button.. i want to frame to grow when the panel is visible and shrink when its not (now i have to manually resize the frame to find the panel...)
calling invalidate() on the panel doesn't seem to do anything, neither does repaint() or updateUI() ...
any got any idea ?
okay i'll do that, i was planning on doing that but wanted to check if there wasn't something built in alreadyall of you, thank you very much your responsesgreetings,PJ