JSplitPane SetDividerLocation Problem
- by Goutham
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?