Search code examples
javaswingosx-elcapitan

Enable Split View on JFrame


Is there a way to show the split view button on my Frame in El Capitan? Currently, I just get the "+" (maximize) button, but I'd like my application to be compatible with split view.

It's easy to reproduce with any Frame.

public class Test {
    public static void main(String [] args)
    {
        JFrame frame = new JFrame();
        JPanel pane = new JPanel();
        pane.add(new JLabel("Hello World!"));
        frame.setContentPane(pane);
        frame.pack();
        frame.setVisible(true);
    }
}

Solution

  • As shown here, you can enable the full-screen button to get the effect you want.

    image