Example usage for javax.swing JSplitPane isContinuousLayout

List of usage examples for javax.swing JSplitPane isContinuousLayout

Introduction

In this page you can find the example usage for javax.swing JSplitPane isContinuousLayout.

Prototype

public boolean isContinuousLayout() 

Source Link

Document

Gets the continuousLayout property.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    JButton topComponent = new JButton("top");
    JButton bottomComponent = new JButton("bottom");

    JSplitPane vpane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topComponent, bottomComponent);

    boolean b = vpane.isContinuousLayout(); // false by default

    // Set the split pane to continuously resize the child components which the divider is dragged
    vpane.setContinuousLayout(true);/*www  .  j av  a2  s .c  om*/
}