Is there any way to keep the JSplitPane from squezzing the left or right components when the divider is gragged. I am looking for a JSplitPane like effect that floats on top of the other compnent on the other side of the divider. thanks for any help
posted 13 years ago
Hi Jeff, I am not sure if you can get a floating effect you want, but here are a couple of (potentially silly) ideas all the same... In one program in which I wanted to prevent the divider of a JSplitPane from "sqeezing" a component, I explicitly set the component's minimumSize. The SpiltPane then honours this, and won't try to squeez it any further. Or, you could put both the left and right components in ScrollPanes. Hope this helps, Abhik.