Norukh
Norukh

Reputation: 364

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?

Upvotes: 5

Views: 214

Answers (1)

MadProgrammer
MadProgrammer

Reputation: 347234

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.

Upvotes: 3

Related Questions