Location « JSplitPane « Java Swing Q&A





1. Setting divider location on a JSplitPane doesn't work    stackoverflow.com

I'm trying to set the divider location of a JSplitPane but it seems not to work. Here's an SSCCE:

import java.awt.Color;
import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSplitPane;


public class JSplitProblem extends JFrame {

   ...