public class JSplitPane extends JComponent implements Accessible
JSplitPane は、2 つ (2 つだけ) の Component を分割するために使用されます。2 つの Component は Look & Feel の実装を基準にしてグラフィカルに分割されます。そのあとでは、2 つの Component はユーザーが対話的にサイズ変更できるようになります。JSplitPane の情報については、『The Java Tutorial』の「How to Use Split Panes」を参照してください。
2 つの Component は、JSplitPane.HORIZONTAL_SPLIT を使って左右に、JSplitPane.VERTICAL_SPLIT を使って上下に整列できます。Component のサイズを変更するには、JSplitPane の方向に応じて location が新しい x または y の位置である setDividerLocation を呼び出すことをお勧めします。
Component のサイズを目的のサイズに変更するには、resetToPreferredSizes を呼び出します。
ユーザーが Component のサイズを変更するときは、Components の最小サイズを使用して、Component に設定できる最大または最小の位置を決めます。したがって、2 つのコンポーネントの最小サイズが分割ペインのサイズより大きい場合、ディバイダはコンポーネントのサイズ変更を許可しません。JComponent の最小サイズの変更方法については、JComponent.setMinimumSize(java.awt.Dimension) を参照してください。
ユーザーが分割ペインのサイズを変更すると、resizeWeight プロパティーに基づき 2 つのコンポーネントの間に新しいスペースが分配されます。デフォルトの値 0 は右または下のコンポーネントがすべてのスペースを取得することを示し、値 1 は左または上のコンポーネントがすべてのスペースを取得することを示します。
警告: Swing はスレッドに対して安全ではありません。詳細は、「Swing's Threading Policy」を参照してください。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の格納や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。1.4 以降、すべての JavaBeansTM 用の長期間の格納サポートが java.beans パッケージに追加されています。XMLEncoder を参照してください。
| 修飾子と型 | クラスと説明 |
|---|---|
protected class |
JSplitPane.AccessibleJSplitPane
このクラスは
JSplitPane クラスのアクセシビリティーサポートを実装しています。 |
JComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| 修飾子と型 | フィールドと説明 |
|---|---|
static String |
BOTTOM
Component をもう一方の Component の下に追加するときに使います。 |
static String |
CONTINUOUS_LAYOUT_PROPERTY
continuousLayout のバウンドプロパティー名です。
|
protected boolean |
continuousLayout
サイズ変更の際、ビューが継続して再表示されるかどうかを示します。
|
static String |
DIVIDER
ディバイダを表す
Component を追加するときに使います。 |
static String |
DIVIDER_LOCATION_PROPERTY
dividerLocation のバウンドプロパティーです。
|
static String |
DIVIDER_SIZE_PROPERTY
ボーダーのバウンドプロパティー名です。
|
protected int |
dividerSize
ディバイダのサイズです。
|
static int |
HORIZONTAL_SPLIT
水平分割は、
Component が x 軸に沿って分割されることを示します。 |
static String |
LAST_DIVIDER_LOCATION_PROPERTY
lastLocation のバウンドプロパティーです。
|
protected int |
lastDividerLocation
スプリットぺインの以前の位置です。
|
static String |
LEFT
Component をもう一方の Component の左に追加するときに使います。 |
protected Component |
leftComponent
左または上のコンポーネントです。
|
static String |
ONE_TOUCH_EXPANDABLE_PROPERTY
oneTouchExpandable のバウンドプロパティーです。
|
protected boolean |
oneTouchExpandable
スプリットぺインをすばやく展開する/収納するために提供される小さなウィジェットです。
|
protected int |
orientation
ビューを分割する方法です。
|
static String |
ORIENTATION_PROPERTY
方向 (水平または垂直) のバウンドプロパティー名です。
|
static String |
RESIZE_WEIGHT_PROPERTY
ウェイトのバウンドプロパティーです。
|
static String |
RIGHT
Component をもう一方の Component の右に追加するときに使います。 |
protected Component |
rightComponent
右または下のコンポーネントです。
|
static String |
TOP
Component をもう一方の Component の上に追加するときに使います。 |
static int |
VERTICAL_SPLIT
垂直分割は、
Component が y 軸に沿って分割されることを示します。 |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| コンストラクタと説明 |
|---|
JSplitPane()
コンポーネントの 2 つのボタンを使って、水平方向に子コンポーネントが並ぶように設定された新しい
JSplitPane を作成します。 |
JSplitPane(int newOrientation)
指定された方向で構成されたで新しい
JSplitPane を作成します。 |
JSplitPane(int newOrientation, boolean newContinuousLayout)
方向と再描画のスタイルを指定して新しい
JSplitPane を作成します。 |
JSplitPane(int newOrientation, boolean newContinuousLayout, Component newLeftComponent, Component newRightComponent)
指定された方向、再描画スタイル、指定されたコンポーネントを使用して新しい
JSplitPane を作成します。 |
JSplitPane(int newOrientation, Component newLeftComponent, Component newRightComponent)
指定された方向と指定されたコンポーネントを使用して新しい
JSplitPane を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected void |
addImpl(Component comp, Object constraints, int index)
この分割ペインに指定したコンポーネントを追加します。
|
AccessibleContext |
getAccessibleContext()
この JSplitPane に関連付けられた AccessibleContext を取得します。
|
Component |
getBottomComponent()
ディバイダの下または右のコンポーネントを返します。
|
int |
getDividerLocation()
setDividerLocation に渡された最終値を返します。 |
int |
getDividerSize()
ディバイダのサイズを返します。
|
int |
getLastDividerLocation()
ディバイダが置かれていた以前の位置を返します。
|
Component |
getLeftComponent()
ディバイダの左 (上) にあるコンポーネントを返します。
|
int |
getMaximumDividerLocation()
Look & Feel の実装からディバイダの最大の位置を返します。
|
int |
getMinimumDividerLocation()
Look & Feel の実装からディバイダの最小の位置を返します。
|
int |
getOrientation()
方向を返します。
|
double |
getResizeWeight()
余分なスペースの配分方法を決める数を返します。
|
Component |
getRightComponent()
ディバイダの右 (または下) のコンポーネントを返します。
|
Component |
getTopComponent()
ディバイダの上または左のコンポーネントを返します。
|
SplitPaneUI |
getUI()
現在の Look & Feel を提供している
SplitPaneUI を返します。 |
String |
getUIClassID()
このコンポーネントをレンダリングする L&F クラスの名前を返します。
|
boolean |
isContinuousLayout()
continuousLayout プロパティーを取得します。 |
boolean |
isOneTouchExpandable()
oneTouchExpandable プロパティーを取得します。 |
boolean |
isValidateRoot()
true を返すと、
JSplitPane の下位オブジェクトで revalidate を呼び出して、JSplitPane とそのすべての下位オブジェクトを検証する要求がキューをキューに入れることができます。 |
protected void |
paintChildren(Graphics g)
super にメッセージが送られたあとに
finishedPaintingChildren を持つ UI にメッセージを送り、ボーダーをペイントするために、サブクラス化されます。 |
protected String |
paramString()
この
JSplitPane の文字列表現を返します。 |
void |
remove(Component component)
子コンポーネント
component をペインから削除します。 |
void |
remove(int index)
指定されたインデックスの
Component を削除します。 |
void |
removeAll()
分割ペインからすべての子コンポーネントを削除します。
|
void |
resetToPreferredSizes()
子コンポーネントの適切なサイズに基づき
JSplitPane を配置します。 |
void |
setBottomComponent(Component comp)
コンポーネントをディバイダの下または右に設定します。
|
void |
setContinuousLayout(boolean newContinuousLayout)
continuousLayout プロパティーの値を設定します。ユーザーが操作したときに子コンポーネントが連続的に再描画されて配置されるようにするには、この値を true に設定する必要があります。 |
void |
setDividerLocation(double proportionalLocation)
JSplitPane のサイズのパーセンテージとしてディバイダの位置を設定します。 |
void |
setDividerLocation(int location)
ディバイダの位置を設定します。
|
void |
setDividerSize(int newSize)
ディバイダのサイズを設定します。
|
void |
setLastDividerLocation(int newLastLocation)
以前にディバイダが置かれていた位置を
newLastLocation に設定します。 |
void |
setLeftComponent(Component comp)
コンポーネントをディバイダの左 (上) に設定します。
|
void |
setOneTouchExpandable(boolean newValue)
oneTouchExpandable プロパティーの値を設定します。JSplitPane がディバイダの UI ウィジェットを提供し、ディバイダを迅速に展開/収納するには、この値を true に設定する必要があります。 |
void |
setOrientation(int orientation)
方向、またはスプリッタがどのように分割されるかを設定します。
|
void |
setResizeWeight(double value)
分割ペインが変更されたときの余分なスペースの配分方法を指定します。
|
void |
setRightComponent(Component comp)
ディバイダの右 (または下) のコンポーネントを設定します。
|
void |
setTopComponent(Component comp)
コンポーネントをディバイダの上または左に設定します。
|
void |
setUI(SplitPaneUI ui)
このコンポーネントをレンダリングする L&F オブジェクトを設定します。
|
void |
updateUI()
L&F が変更されたことを示す、
UIManager からの通知です。 |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final int VERTICAL_SPLIT
Component が y 軸に沿って分割されることを示します。たとえば 2 つの Component が上下に並ぶように分割されることを示します。public static final int HORIZONTAL_SPLIT
Component が x 軸に沿って分割されることを示します。たとえば 2 つの Component が左右に並ぶように分割されることを示します。public static final String ORIENTATION_PROPERTY
public static final String CONTINUOUS_LAYOUT_PROPERTY
public static final String DIVIDER_SIZE_PROPERTY
public static final String ONE_TOUCH_EXPANDABLE_PROPERTY
public static final String LAST_DIVIDER_LOCATION_PROPERTY
public static final String DIVIDER_LOCATION_PROPERTY
public static final String RESIZE_WEIGHT_PROPERTY
protected int orientation
protected boolean continuousLayout
protected Component leftComponent
protected Component rightComponent
protected int dividerSize
protected boolean oneTouchExpandable
protected int lastDividerLocation
public JSplitPane()
JSplitPane を作成します。@ConstructorProperties(value="orientation") public JSplitPane(int newOrientation)
JSplitPane を作成します。newOrientation - JSplitPane.HORIZONTAL_SPLIT または JSplitPane.VERTICAL_SPLITIllegalArgumentException - orientation が HORIZONTAL_SPLIT または VERTICAL_SPLIT のどちらでもない場合。public JSplitPane(int newOrientation,
boolean newContinuousLayout)
JSplitPane を作成します。newOrientation - JSplitPane.HORIZONTAL_SPLIT または JSplitPane.VERTICAL_SPLITnewContinuousLayout - boolean 値。ディバイダの位置の変更に合わせてコンポーネントが連続して再描画されるようにする場合は true、ディバイダの位置の変更が終了するまで再描画を待機する場合は falseIllegalArgumentException - orientation が HORIZONTAL_SPLIT または VERTICAL_SPLIT のいずれでもない場合public JSplitPane(int newOrientation,
Component newLeftComponent,
Component newRightComponent)
JSplitPane を作成します。newOrientation - JSplitPane.HORIZONTAL_SPLIT または JSplitPane.VERTICAL_SPLITnewLeftComponent - 水平方向に分割されたペインの左、または垂直方向に分割されたペインの上に表示される ComponentnewRightComponent - 水平方向に分割されたペインの右、または垂直方向に分割されたペインの下に表示される ComponentIllegalArgumentException - orientation が HORIZONTAL_SPLIT または VERTICAL_SPLIT のどちらでもない場合public JSplitPane(int newOrientation,
boolean newContinuousLayout,
Component newLeftComponent,
Component newRightComponent)
JSplitPane を作成します。newOrientation - JSplitPane.HORIZONTAL_SPLIT または JSplitPane.VERTICAL_SPLITnewContinuousLayout - boolean 値。ディバイダの位置の変更に合わせてコンポーネントが連続して再描画されるようにする場合は true、ディバイダの位置の変更が終了するまで再描画を待機する場合は falsenewLeftComponent - 水平方向に分割されたペインの左、または垂直方向に分割されたペインの上に表示される ComponentnewRightComponent - 水平方向に分割されたペインの右、または垂直方向に分割されたペインの下に表示される ComponentIllegalArgumentException - orientation が HORIZONTAL_SPLIT または VERTICAL_SPLIT のいずれでもない場合public void setUI(SplitPaneUI ui)
ui - SplitPaneUI L&F オブジェクトUIDefaults.getUI(javax.swing.JComponent)public SplitPaneUI getUI()
SplitPaneUI を返します。SplitPaneUI オブジェクトpublic void updateUI()
UIManager からの通知です。現在の UI オブジェクトを UIManager の最新バージョンに置き換えます。updateUI 、クラス: JComponentJComponent.updateUI()public String getUIClassID()
getUIClassID 、クラス: JComponentJComponent.getUIClassID(), UIDefaults.getUI(javax.swing.JComponent)public void setDividerSize(int newSize)
newSize - ディバイダのサイズをピクセル数で指定する int 値public int getDividerSize()
public void setLeftComponent(Component comp)
comp - その位置に表示する Componentpublic Component getLeftComponent()
Componentpublic void setTopComponent(Component comp)
comp - その位置に表示する Componentpublic Component getTopComponent()
Componentpublic void setRightComponent(Component comp)
comp - その位置に表示する Componentpublic Component getRightComponent()
Componentpublic void setBottomComponent(Component comp)
comp - その位置に表示する Componentpublic Component getBottomComponent()
Componentpublic void setOneTouchExpandable(boolean newValue)
oneTouchExpandable プロパティーの値を設定します。JSplitPane がディバイダの UI ウィジェットを提供し、ディバイダを迅速に展開/収納するには、この値を true に設定する必要があります。このプロパティーのデフォルト値は false です。一部の Look & Feel がワンタッチの展開をサポートしない場合があります。その場合、このプロパティーは無視されます。newValue - 分割ペインが展開/折りたたみウィジェットを提供するように指定する場合は trueisOneTouchExpandable()public boolean isOneTouchExpandable()
oneTouchExpandable プロパティーを取得します。oneTouchExpandable プロパティーの値setOneTouchExpandable(boolean)public void setLastDividerLocation(int newLastLocation)
newLastLocation に設定します。newLastLocation - ディバイダの以前の位置を、ペインの左 (または上) 端からディバイダの左 (または上) 端までのピクセル数で指定する整数値public int getLastDividerLocation()
public void setOrientation(int orientation)
orientation - 方向を指定する整数値IllegalArgumentException - 方向が HORIZONTAL_SPLIT でも VERTICAL_SPLIT でもない場合。public int getOrientation()
setOrientation(int)public void setContinuousLayout(boolean newContinuousLayout)
continuousLayout プロパティーの値を設定します。ユーザーが操作したときに子コンポーネントが連続的に再描画されて配置されるようにするには、この値を true に設定する必要があります。このプロパティーのデフォルト値は Look & Feel に依存します。一部の Look & Feel は連続したレイアウトをサポートしていません。その場合、このプロパティーは無視されます。newContinuousLayout - ディバイダの位置が変更されたときにコンポーネントが連続的に再描画される場合は trueisContinuousLayout()public boolean isContinuousLayout()
continuousLayout プロパティーを取得します。continuousLayout プロパティーの値setContinuousLayout(boolean)public void setResizeWeight(double value)
value - 上記のとおりIllegalArgumentException - value が 0 より小さいか、1 より大きい場合public double getResizeWeight()
public void resetToPreferredSizes()
JSplitPane を配置します。通常は、これによってディバイダの位置が変わります。public void setDividerLocation(double proportionalLocation)
JSplitPane のサイズのパーセンテージとしてディバイダの位置を設定します。
このメソッドは setDividerLocation(int) に基づいて実装されます。このメソッドは現在のサイズに基づき分割ペインのサイズをただちに変更します。分割ペインがスクリーン上で正しく実現されない場合、新しいディバイダの位置は現在のサイズ * proportionalLocation が 0 になり、このメソッドの効果はありません。
proportionalLocation - 0 (上または左) から 1.0 (下または右) までのパーセンテージを指定する倍精度浮動小数点値IllegalArgumentException - 指定された位置が 0 より小さいか、1.0 より大きい場合public void setDividerLocation(int location)
setLastDividerLocation により変更されます。location - UI 固有の値 (通常はピクセル数) を指定する int 値public int getDividerLocation()
setDividerLocation に渡された最終値を返します。このメソッドで返された値は、setDividerLocation に渡された値が現在のサイズより大きい場合は、実際のディバイダの位置と異なる場合があります。public int getMinimumDividerLocation()
null の場合は -1public int getMaximumDividerLocation()
null の場合は -1public void remove(Component component)
component をペインから削除します。必要に応じて、leftComponent または rightComponent インスタンス変数をリセットします。remove 、クラス: Containercomponent - 削除する ComponentContainer.add(java.awt.Component), Container.invalidate(), Container.validate(), Container.remove(int)public void remove(int index)
Component を削除します。必要に応じて、leftComponent および rightComponent インスタンス変数を変更してから、スーパークラスにメッセージを送ります。remove 、クラス: Containerindex - 削除するコンポーネントを指定する int 値。1 では左または上のコンポーネントが指定され、2 では下または右のコンポーネントが指定されるContainer.add(java.awt.Component), Container.invalidate(), Container.validate(), Container.getComponentCount()public void removeAll()
leftComonent および rightComponent インスタンス変数をリセットします。removeAll 、クラス: ContainerContainer.add(java.awt.Component), Container.remove(int), Container.invalidate()public boolean isValidateRoot()
JSplitPane の下位オブジェクトで revalidate を呼び出して、JSplitPane とそのすべての下位オブジェクトを検証する要求がキューをキューに入れることができます。isValidateRoot 、クラス: JComponentJComponent.revalidate(), Container.isValidateRoot()protected void addImpl(Component comp, Object constraints, int index)
constraints が左または上あるいは右または下の子コンポーネントを識別し、その識別子を持つコンポーネントが以前に追加されている場合は、それを削除してから、その位置に comp を追加します。constraints が既知の識別子でない場合、レイアウトマネージャーは IllegalArgumentException をスローします。
指定できる制約オブジェクト (String) は次のとおりです。
constraints オブジェクトが null の場合、利用可能な最初の位置にコンポーネントが追加されます (開いている場合は左または上、そうでない場合は右または下)。addImpl 、クラス: Containercomp - 追加するコンポーネントconstraints - このコンポーネントのレイアウト制約 (位置) を指定する Objectindex - コンテナリスト内のインデックスを指定する int 値。IllegalArgumentException - constraints オブジェクトが既存のコンポーネントに一致しない場合Container.addImpl(Component, Object, int)protected void paintChildren(Graphics g)
finishedPaintingChildren を持つ UI にメッセージを送り、ボーダーをペイントするために、サブクラス化されます。paintChildren 、クラス: JComponentg - ペイント先となる Graphics コンテキストJComponent.paint(java.awt.Graphics), Container.paint(java.awt.Graphics)protected String paramString()
JSplitPane の文字列表現を返します。このメソッドはデバッグ専用であり、返される文字列の内容および形式は実装によって異なります。返される文字列は空の場合がありますが、null にはなりません。paramString 、クラス: JComponentJSplitPane を表す文字列表現。public AccessibleContext getAccessibleContext()
getAccessibleContext 、インタフェース: AccessiblegetAccessibleContext 、クラス: JComponent バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.