appendix> Component> JSplitPane | TOPUPPREVNEXT |
java.lang.Object
└java.awt.Component
└java.awt.Container
└java.awt.JComponent
└javax.swing.JSplitPane
コンストラクタ | 機能 |
---|---|
JSplitPane ( int orientation ) |
orientation に分割の方向を指定します。 JSplitPane.HORIZONTAL_SPLIT を指定すると横2つに分割、 JSplitPane.VERTICAL_SPLIT を指定すると縦2つに分割します。 |
JSplitPane (
int orientation, Component left, Component right ) |
orientation に分割の方向を指定します。 left に左側または上側に配置するコンポーネントを指定します。 right に右側または下側に配置するコンポーネントを指定します。 |
メソッド | 機能 |
---|---|
void setDividerLocation ( double parsent ) | デバイダの位置をパーセントで指定します。 |
void setDividerLocation ( int location ) | デバイダの位置をピクセルで指定します。 |
void setLeftComponent ( Component comp ) | comp を左側または上側に設定します。 |
void setRigthComponent ( Component comp ) | comp を右側または下側に設定します。 |
void setDividerSize ( int size ) | デバイダの幅をピクセルで指定します。 |
スクロールペインを利用する例、setDividerSize の例
更新日:2004-11-04