I have a simple Java Swing GUI with a JSplitPane
to divide two JPanels. Now I wonder how I let it move smooth, so you can see it moving when resizing the window. The standard setting is very ugly, because the JSplitPane
only moves if you release it.
I spend a lot of time searching for something like that.
Is there any function in the Class JSplitPane
to move it smooth?
I believe you are looking for JSplitPane#setContinuousLayout
Sets the value of the continuousLayout property, which must be true for the child components to be continuously redisplayed and laid out during user intervention. The default value of this property is look and feel dependent. Some look and feels might not support continuous layout; they will ignore this property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With