In Swing, what\'s the best way to make the JSplitPane to split two jpanels with 50% size each.
It looks like if I don\'t set preferred sizes on the panels it always make
The solutions here do not take into account the case where the user moves the divider (i.e. a variable divider location). A complete example that takes this into account is available here:
How do you get JSplitPane to keep the same proportional location if the user has moved the location of the divider