Paned.setPosition

void setPosition(int position)

Sets the position of the divider between the two panes.

Parameters

positionpixel position of divider, a negative value means that the position is unset.