JSplitPane SetDividerLocation Problem
Posted
by Goutham
on Stack Overflow
See other posts from Stack Overflow
or by Goutham
Published on 2009-12-10T06:45:53Z
Indexed on
2010/06/02
10:23 UTC
Read the original article
Hit count: 233
java
|jsplitpane
I have a JSplitPane which when shown should split the pane by 50%.
Now on giving an argument of 0.5 (as suggested) to setDividerLocation, Java seems to treat it as a normal number instead of a percentage. As in, the divider, instead of going to the middle of the pane, is almost at the start of the left pane (the pane is vertically split). Any work arounds?
© Stack Overflow or respective owner