How can I let JSplitPane move smoothly?

I have a simple Java Swing JSplitPane with JSplitPane to separate two JPanels. Now I wonder how I let this move smoothly, so you can see how it moves when the window is resized. The default setting is very ugly because JSplitPane only moves if you release it. I spend a lot of time looking for something like that.

Is there any function in the JSplitPane class for its smooth transition?

+5
source share
1 answer

I believe you are looking for JSplitPane#setContinuousLayout

Sets the value of the continuous Layout property, which must be true so that child components are constantly displayed and displayed during user intervention. The default value of this property depends on the appearance. Some views and feelings may not support a continuous layout; they will ignore this property.

+4
source

All Articles