Forums Register Login

how to keep JSplitPane from resizing

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
Yeah, but how did the squirrel get in there? Was it because of the tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1861 times.
Similar Threads
cahnging color of Divider
How to do not miss onmouseup?
JTable in JScrollPane in JSplitPane
JSplitPane and DividerLocation
JTextField on a disabled JSplitPane - problem with selectAll()
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:39:19.