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).

RSS feed for comments on this post · TrackBack URL

Leave a Comment