This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I have a JFrame which contains a JSplitPane. In the JSplitPane, there are 2 JPanels. Normally second JPanel is invisible, but when the user presses a button it will become visible. I want the JFrame to be resized automatically. When it shows a single panel, its size will shrink; and when it shows both panels it will become larger. How can I do that? Thanks. Ahmet Aksoy