Revalidate JPanel's parent frame

Posted by Tom Brito on Stack Overflow See other posts from Stack Overflow or by Tom Brito
Published on 2010-05-10T20:06:36Z Indexed on 2010/05/10 20:14 UTC
Read the original article Hit count: 248

Filed under:
|
|
|
|

I need show/hide some fields of my panel, and I want the panel to fit the frame. How could I notify to the parent frame to revalidate?

I think in pass the frame to my panel's constructor, but I think may have a way this is already done. I remember that there was a protected attribute in JPanel, but there isn't.. maybe i remembering the wrong component.

© Stack Overflow or respective owner

Related posts about java

Related posts about gui