JSplitPane divider location

Use JSplitPane.setDividerLocation() to set the location of the split pane divider.

The interesting thing is this only works after the split pane is realized on the screen. Therefore using this in my initialization procedure before setVisible(true) makes it useless. I’ve confirmed this by setting the divider location immediately before and after frame.setVisible(true).

Leave a Reply

Your email address will not be published. Required fields are marked *