This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I've got a JSplitPane with a left pane and a right. In the right pane I've got several components added to a JPanel using the default FlowLayout. If I resize the right edge of the JFrame using the mouse, the components in the FlowLayout rearrange themselves properly, but if I try to do the same thing using the divider, it doesn't allow me to "squish" the components and move them to the next line.
Is there a way to make the divider resize the right panel the way the edge of the frame does?
Here's a little self-contained example depicting the problem I'm having.
To answer that I would need to go through a lot of the code of FlowLayout, and I don't really have the time for that right now. Why don't you try to find out for yourself? a good starting point might be the method minimumLayoutSize(Container target).