This content has been marked as final. Show 4 replies
Well, you could try calling pack() on the frame when you show or hide the bottom panel and see if that does what you want.
Otherwise, you have to explicitly set the size of the frame by figuring out how much space you need for each component and when you show or hide the bottom panel, set the frame size accordingly.
it works with pack(). Thanks.
it works with pack(). Thanks.Instead of creating multiple posts why don't you try reading your [url http://forum.java.sun.com/thread.jsp?thread=561186&forum=57&message=2759482]original post so people don't waste time answering questions that have already been answered.
Sorry for the double post. It was unintended.