Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I let a JSplitPane move smooth?

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?

like image 697
Norukh Avatar asked Oct 20 '22 13:10

Norukh


1 Answers

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.

like image 188
MadProgrammer Avatar answered Oct 22 '22 03:10

MadProgrammer