📜  Java Swing-JSplitPane

📅  最后修改于: 2020-10-01 03:23:22             🧑  作者: Mango

Java JSplitPane

JSplitPane用于划分两个组件。这两个组件根据外观和实现方式进行划分,用户可以调整它们的大小。如果两个组件的最小大小大于拆分窗格的大小,则分隔符将不允许您调整其大小。

拆分窗格中的两个组件可以使用JSplitPane.HORIZONTAL_SPLIT从左到右对齐,或者使用JSplitPane.VERTICAL_SPLIT从上到下对齐。当用户调整组件的大小时,将使用组件的最小尺寸来确定可以设置组件的最大/最小位置。

嵌套类

Modifier and Type Class Description
protected class JSplitPane.AccessibleJSplitPane This class implements accessibility support for the JsplitPane class.

有用的领域

Modifier and Type Field Description
static String BOTTOM It use to add a Component below the other Component.
static String CONTINUOUS_LAYOUT_PROPERTY Bound property name for continuousLayout.
static String DIVIDER It uses to add a Component that will represent the divider.
static int HORIZONTAL_SPLIT Horizontal split indicates the Components are split along the x axis.
protected int lastDividerLocation Previous location of the split pane.
protected Component leftComponent The left or top component.
static int VERTICAL_SPLIT Vertical split indicates the Components are split along the y axis.
protected Component rightComponent The right or bottom component.
protected int orientation How the views are split.

建设者

Constructor Description
JSplitPane() It creates a new JsplitPane configured to arrange the c