• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to keep JSplitPane from resizing  RSS feed

 
jeff culler
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Abhik Sarkar
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!