クラスjava.awt.Component
の使用
-
Componentを使用するパッケージ パッケージ 説明 com.sun.java.accessibility.util Java Accessibility Utilitiesを構成するインタフェースとクラスの集合を提供します。java.applet アプレットの作成、およびアプレットとアプレット・コンテキストとの通信に使用するクラスの作成に必要なクラスを提供します。java.awt ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。java.awt.dnd ドラッグ&ドロップ操作は、多くのグラフィカル・ユーザー・インタフェース・システムで見られる直接的な操作ジェスチャで、GUIの表現要素に論理的に関連付けられた2つのエンティティ間で情報を変換するメカニズムを提供します。java.awt.event AWTコンポーネントによってトリガーされるさまざまな種類のイベントを処理するインタフェースとクラスを提供します。java.awt.im インプット・メソッド・フレームワークのためのクラスおよびインタフェースを提供します。java.beans Bean (JavaBeans™アーキテクチャに基づいたコンポーネント)の開発に関連したクラスが含まれています。java.beans.beancontext Beanコンテキストに関連するクラスおよびインタフェースを提供します。javax.swing すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。javax.swing.border Swingコンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。javax.swing.colorchooser JColorChooserコンポーネントによって使用されるクラスとインタフェースが含まれています。javax.swing.event Swingコンポーネントによってトリガーされるイベントを提供します。javax.swing.plaf 1つのインタフェースおよび多くのabstractクラスを提供しており、Swingはプラグイン可能なLook & Feel機能を提供するためにこれらを利用します。javax.swing.plaf.basic 基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。javax.swing.plaf.metal デフォルトのLook & FeelであるJava Look & Feel (以前のコード名はMetal)に従って構築されたユーザー・インタフェース・オブジェクトを提供します。javax.swing.plaf.synth Synthは、すべてのペイントが委譲されるスキン設定可能なLook & Feelです。javax.swing.table javax.swing.JTableを処理するためのクラスとインタフェースを提供します。javax.swing.text 編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。javax.swing.text.html HTMLテキスト・エディタを作成するためのクラスHTMLEditorKitとサポート・クラスを提供します。javax.swing.tree javax.swing.JTreeを処理するためのクラスとインタフェースを提供します。 -
-
com.sun.java.accessibility.utilでのComponentの使用
Componentとして宣言されたcom.sun.java.accessibility.utilのフィールド 修飾子と型 フィールド 説明 protected static ComponentAWTEventMonitor. componentWithFocus削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。このフィールドは使用されません。フォーカスがあるコンポーネントを取得するには、getComponentWithFocusメソッドを使用します。Componentを戻すcom.sun.java.accessibility.utilのメソッド 修飾子と型 メソッド 説明 static ComponentAWTEventMonitor. getComponentWithFocus()現在、キーボード・フォーカスがあるコンポーネントを返します。 -
java.appletでのComponentの使用
java.appletでのComponentのサブクラス 修飾子と型 クラス 説明 classApplet非推奨。アプレットAPIは非推奨であり、代替はありません。 -
java.awtでのComponentの使用
java.awtでのComponentのサブクラス 修飾子と型 クラス 説明 classButtonこのクラスはラベル付きボタンを生成します。classCanvasCanvasコンポーネントは、アプリケーションが描画したり、アプリケーションがユーザーからの入力イベントをトラップしたりすることのできる画面の空白の矩形領域を表します。classCheckboxチェックボックスは、「オン」(true)または「オフ」(false)のどちらかの状態になることができるグラフィカル・コンポーネントです。classChoiceChoiceクラスは、選択肢のポップアップ・メニューを提供します。classContainerジェネリックAbstract Window Toolkit (AWT)コンテナ・オブジェクトは、ほかのAWTコンポーネントを含むことができるコンポーネントです。classDialogDialogは、通常はユーザーからの入力を受け付けるために使用される、タイトルおよびボーダーを持つトップ・レベルのウィンドウです。classFileDialogFileDialogクラスは、ユーザーがファイルを選択できるダイアログ・ウィンドウを表示します。classFrameFrameは、タイトルとボーダーを持つトップ・レベルのウィンドウです。classLabelLabelオブジェクトは、コンテナ内にテキストを配置するためのコンポーネントです。classListListコンポーネントは、ユーザーにテキスト項目のスクロール・リストを提供します。classPanelPanelは、もっとも単純なコンテナ・クラスです。classScrollbarScrollbarクラスは、なじみのあるユーザー・インタフェース・オブジェクトであるスクロール・バーを実現します。classScrollPane1つの子コンポーネントに対して、自動水平または垂直スクロールあるいはその両方を実装するコンテナ・クラスです。classTextAreaTextAreaオブジェクトは、テキストを表示する複数行領域です。classTextComponentTextComponentクラスは、一部のテキストの編集を可能にするすべてのコンポーネントのスーパー・クラスです。classTextFieldTextFieldオブジェクトは、1行のテキストの編集を可能にするテキスト・コンポーネントです。classWindowWindowオブジェクトは、ボーダーやメニュー・バーのないトップ・レベルのウィンドウです。Component型の型パラメータを持つjava.awtのフィールド 修飾子と型 フィールド 説明 protected Hashtable<Component,GridBagConstraints>GridBagLayout. comptableこのハッシュ表は、コンポーネントとコンポーネントのグリッド・バッグ制約との関連性を維持します。Componentを返すjava.awtのメソッド 修飾子と型 メソッド 説明 ComponentContainer. add(Component comp)指定されたコンポーネントをこのコンテナの最後に追加します。ComponentContainer. add(Component comp, int index)指定されたコンポーネントを、このコンテナの指定された位置に追加します。ComponentContainer. add(String name, Component comp)指定されたコンポーネントをこのコンテナに追加します。ComponentContainer. findComponentAt(int x, int y)指定された位置を格納する可視の子コンポーネントを探します。ComponentContainer. findComponentAt(Point p)指定された点を格納する可視の子コンポーネントを探します。ComponentContainer. getComponent(int n)コンテナ内のn番目のコンポーネントを取得します。ComponentContainerOrderFocusTraversalPolicy. getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。abstract ComponentFocusTraversalPolicy. getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。ComponentComponent. getComponentAt(int x, int y)このコンポーネントまたはその直接のサブコンポーネントのいずれかに(x, y)位置が含まれているかどうかを判定し、該当する場合は含んでいるコンポーネントを返します。ComponentComponent. getComponentAt(Point p)指定された点を含むコンポーネントまたはサブコンポーネントを返します。ComponentContainer. getComponentAt(int x, int y)x、y座標を含むコンポーネントを探します。ComponentContainer. getComponentAt(Point p)指定された点を含むコンポーネントを取得します。ComponentContainerOrderFocusTraversalPolicy. getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。abstract ComponentFocusTraversalPolicy. getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。Component[]Container. getComponents()コンテナ内のすべてのコンポーネントを取得します。ComponentContainerOrderFocusTraversalPolicy. getDefaultComponent(Container aContainer)フォーカスするデフォルトのComponentを返します。abstract ComponentFocusTraversalPolicy. getDefaultComponent(Container aContainer)フォーカスするデフォルトのComponentを返します。ComponentContainerOrderFocusTraversalPolicy. getFirstComponent(Container aContainer)トラバーサル・サイクルの最初のComponentを返します。abstract ComponentFocusTraversalPolicy. getFirstComponent(Container aContainer)トラバーサル・サイクルの最初のComponentを返します。ComponentKeyboardFocusManager. getFocusOwner()フォーカスの所有者が呼出し側と同じコンテキストにある場合、フォーカスの所有者を返します。ComponentWindow. getFocusOwner()このWindowがフォーカスされている場合は、このWindowの子Componentを返します。そうでない場合はnullを返します。protected ComponentKeyboardFocusManager. getGlobalFocusOwner()呼出し側スレッドがフォーカスの所有者と異なるコンテキストにある場合でも、フォーカスの所有者を返します。protected ComponentKeyboardFocusManager. getGlobalPermanentFocusOwner()パーマネント・フォーカスの所有者が呼出し側スレッドと異なるコンテキストにある場合でも、パーマネント・フォーカス所有者を返します。ComponentFocusTraversalPolicy. getInitialComponent(Window window)ウィンドウがはじめて表示されたときにフォーカスを受信するべきComponentを返します。ComponentContainerOrderFocusTraversalPolicy. getLastComponent(Container aContainer)トラバーサル・サイクルの最後のComponentを返します。abstract ComponentFocusTraversalPolicy. getLastComponent(Container aContainer)トラバーサル・サイクルの最後のComponentを返します。ComponentBorderLayout. getLayoutComponent(Container target, Object constraints)ターゲットContainerのコンポーネント方向に基づいて、指定された制約の場所に対応するコンポーネントを返します。ComponentBorderLayout. getLayoutComponent(Object constraints)指定された制約で追加されたコンポーネントを取得します。ComponentWindow. getMostRecentFocusOwner()このWindowがフォーカスされるときに、フォーカスを受け取るこのWindowの子Componentを返します。ComponentKeyboardFocusManager. getPermanentFocusOwner()パーマネント・フォーカスの所有者が呼出し側スレッドと同じコンテキストにある場合、パーマネント・フォーカスの所有者を返します。ComponentComponent. locate(int x, int y)非推奨。JDKバージョン1.1で、getComponentAt(int, int)に置き換えられています。ComponentContainer. locate(int x, int y)非推奨。JDKバージョン1.1で、getComponentAt(int, int)に置き換えられています。Component型のパラメータを持つjava.awtのメソッド 修飾子と型 メソッド 説明 protected booleanContainerOrderFocusTraversalPolicy. accept(Component aComponent)Componentが新しいフォーカス所有者として適切かどうかを判定します。protected booleanDefaultFocusTraversalPolicy. accept(Component aComponent)Componentが新しいフォーカス所有者として適切かどうかを判定します。ComponentContainer. add(Component comp)指定されたコンポーネントをこのコンテナの最後に追加します。ComponentContainer. add(Component comp, int index)指定されたコンポーネントを、このコンテナの指定された位置に追加します。voidContainer. add(Component comp, Object constraints)指定されたコンポーネントをこのコンテナの末尾に追加します。voidContainer. add(Component comp, Object constraints, int index)指定されたコンポーネントを、指定されたインデックスと指定された制約で、コンテナへ追加します。ComponentContainer. add(String name, Component comp)指定されたコンポーネントをこのコンテナに追加します。protected voidContainer. addImpl(Component comp, Object constraints, int index)指定されたコンポーネントを、指定されたインデックスで、コンテナへ追加します。protected voidScrollPane. addImpl(Component comp, Object constraints, int index)指定されたコンポーネントを、このスクロール・ペイン・コンテナに追加します。voidBorderLayout. addLayoutComponent(Component comp, Object constraints)指定された制約オブジェクトを使って、指定されたコンポーネントをレイアウトに追加します。voidBorderLayout. addLayoutComponent(String name, Component comp)非推奨。addLayoutComponent(Component, Object)に置き換えられます。voidCardLayout. addLayoutComponent(Component comp, Object constraints)指定されたコンポーネントを、このカード・レイアウトの名前の内部表に追加します。voidCardLayout. addLayoutComponent(String name, Component comp)非推奨。addLayoutComponent(Component, Object)に置き換えられます。voidFlowLayout. addLayoutComponent(String name, Component comp)指定されたコンポーネントをレイアウトに追加します。voidGridBagLayout. addLayoutComponent(Component comp, Object constraints)指定されたconstraintsオブジェクトを使用して、指定されたコンポーネントをレイアウトに追加します。voidGridBagLayout. addLayoutComponent(String name, Component comp)このレイアウト・マネージャはコンポーネントごとの文字列を使用しないため、何もしません。voidGridLayout. addLayoutComponent(String name, Component comp)指定された名前で、指定されたコンポーネントをレイアウトに追加します。voidLayoutManager. addLayoutComponent(String name, Component comp)レイアウト・マネージャがコンポーネントごとの文字列を使用する場合は、レイアウトにコンポーネントcompを追加し、それをnameによって指定された文字列に関連付けます。voidLayoutManager2. addLayoutComponent(Component comp, Object constraints)指定された制約オブジェクトを使って、指定されたコンポーネントをレイアウトに追加します。<T extends DragGestureRecognizer>
TToolkit. createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)要求された抽象クラスDragGestureRecognizerの、プラットフォームに依存する具象サブクラスを作成し、指定されたDragSource、Component、およびDragGestureListenerに関連付けます。protected voidDefaultKeyboardFocusManager. dequeueKeyEvents(long after, Component untilFocused)同じタイムスタンプとComponentを使用したenqueueKeyEventsの呼出しのためにキューに入れられたすべてのKeyEventを、現在のフォーカス所有者への通常のディスパッチのために解放します。protected abstract voidKeyboardFocusManager. dequeueKeyEvents(long after, Component untilFocused)遅延したKeyEventsのディスパッチを取り消すようKeyboardFocusManagerに通知するためにAWTによって呼び出されます。protected voidDefaultKeyboardFocusManager. discardKeyEvents(Component comp)指定されたComponent、またはそのいずれかの下位コンポーネントを使用したenqueueKeyEventsの1回以上の呼出しのためにキューに入れられたすべてのKeyEventを破棄します。protected abstract voidKeyboardFocusManager. discardKeyEvents(Component comp)遅延したKeyEventsのディスパッチを取り消すようKeyboardFocusManagerに通知するためにAWTによって呼び出されます。protected voidDefaultKeyboardFocusManager. enqueueKeyEvents(long after, Component untilFocused)指定されたコンポーネントがフォーカス所有者となるまで、KeyEventsのディスパッチを遅らせます。protected abstract voidKeyboardFocusManager. enqueueKeyEvents(long after, Component untilFocused)指定されたComponentがフォーカスの所有者になるまで、KeyEventsのディスパッチを遅延させる必要があることをKeyboardFocusManagerに通知するためにAWTによって呼び出されます。voidDefaultKeyboardFocusManager. focusNextComponent(Component aComponent)通常FocusTraversalPolicyに基づいて、aComponentのあとでComponentをフォーカスします。abstract voidKeyboardFocusManager. focusNextComponent(Component aComponent)通常FocusTraversalPolicyに基づいて、aComponentのあとでComponentをフォーカスします。voidDefaultKeyboardFocusManager. focusPreviousComponent(Component aComponent)通常FocusTraversalPolicyに基づいて、aComponentの前にComponentをフォーカスします。abstract voidKeyboardFocusManager. focusPreviousComponent(Component aComponent)通常FocusTraversalPolicyに基づいて、aComponentの前にComponentをフォーカスします。ComponentContainerOrderFocusTraversalPolicy. getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。abstract ComponentFocusTraversalPolicy. getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。ComponentContainerOrderFocusTraversalPolicy. getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。abstract ComponentFocusTraversalPolicy. getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。intContainer. getComponentZOrder(Component comp)コンテナ内のコンポーネントのZ軸順インデックスを返します。ObjectBorderLayout. getConstraints(Component comp)指定されたコンポーネントの制約を取得します。GridBagConstraintsGridBagLayout. getConstraints(Component comp)指定されたコンポーネントの制約を返します。protected static ContainerToolkit. getNativeContainer(Component c)ネイティブ・ピアに、ネイティブ・コンポーネントを与えてネイティブ・コンテナを照会する能力を与えます(直接の親は軽量である可能性があります)。booleanContainer. isAncestorOf(Component c)コンポーネントがこのコンテナのコンポーネント階層に含まれているかどうかを判定します。protected GridBagConstraintsGridBagLayout. lookupConstraints(Component comp)指定されたコンポーネントの制約を返します。voidDefaultKeyboardFocusManager. processKeyEvent(Component focusedComponent, KeyEvent e)KeyEventが指定されたfocusedComponentに対してフォーカス・トラバーサル・キーを示す場合にのみ、このメソッドはフォーカス・トラバーサル操作を初期化します。abstract voidKeyboardFocusManager. processKeyEvent(Component focusedComponent, KeyEvent e)KeyEventが指定されたfocusedComponentに対してフォーカス・トラバーサル・キーを示す場合にのみ、このメソッドはフォーカス・トラバーサル操作を初期化します。voidKeyboardFocusManager. redispatchEvent(Component target, AWTEvent e)AWTイベント・ディスパッチャに対してKeyboardFocusManager、またはインストールされた任意のKeyEventDispatchersが再度イベントを再帰的にディスパッチすることを要求しないような方法でAWTEventを再ディスパッチします。voidContainer. remove(Component comp)このコンテナから、指定されたコンポーネントを削除します。voidBorderLayout. removeLayoutComponent(Component comp)このボーダー・レイアウトから、指定されたコンポーネントを削除します。voidCardLayout. removeLayoutComponent(Component comp)指定されたコンポーネントをレイアウトから削除します。voidFlowLayout. removeLayoutComponent(Component comp)指定されたコンポーネントをレイアウトから削除します。voidGridBagLayout. removeLayoutComponent(Component comp)指定されたコンポーネントをこのレイアウトから削除します。voidGridLayout. removeLayoutComponent(Component comp)指定されたコンポーネントをレイアウトから削除します。voidLayoutManager. removeLayoutComponent(Component comp)指定されたコンポーネントをレイアウトから削除します。voidContainer. setComponentZOrder(Component comp, int index)指定されたコンポーネントを、コンテナの指定されたZ軸順のインデックスに移動します。voidGridBagLayout. setConstraints(Component comp, GridBagConstraints constraints)このレイアウトの指定されたコンポーネントに対して制約を設定します。protected voidKeyboardFocusManager. setGlobalFocusOwner(Component focusOwner)フォーカスの所有者を設定します。protected voidKeyboardFocusManager. setGlobalPermanentFocusOwner(Component permanentFocusOwner)パーマネント・フォーカスの所有者を設定します。voidWindow. setLocationRelativeTo(Component c)次のシナリオに応じて、指定されたコンポーネントを基準にしたウィンドウの位置を設定します。voidPopupMenu. show(Component origin, int x, int y)元のコンポーネントからの相対位置x, yにポップアップ・メニューを表示します。voidDefaultKeyboardFocusManager. upFocusCycle(Component aComponent)フォーカスを1つ上のフォーカス・トラバーサル・サイクルに移動します。abstract voidKeyboardFocusManager. upFocusCycle(Component aComponent)フォーカスを1つ上のフォーカス・トラバーサル・サイクルに移動します。Component型のパラメータを持つjava.awtのコンストラクタ コンストラクタ 説明 MediaTracker(Component comp)指定されたコンポーネントのイメージを監視するメディア・トラッカを作成します。 -
java.awt.dndでのComponentの使用
Componentとして宣言されているjava.awt.dndのフィールド 修飾子と型 フィールド 説明 protected ComponentDragGestureRecognizer. componentこのDragGestureRecognizerに関連付けられているComponent。Componentを返すjava.awt.dndのメソッド 修飾子と型 メソッド 説明 ComponentDragGestureEvent. getComponent()このDragGestureEventに関連付けられたComponentを返します。ComponentDragGestureRecognizer. getComponent()このメソッドは、DragGestureRecognizerによってドラッグ開始ジェスチャを「監視」されるComponentを返します。ComponentDragSourceContext. getComponent()このDragSourceContextに関連付けられたComponentを返します。ComponentDropTarget. getComponent()このDropTargetに関連付けられているComponentを取得します。ComponentDropTargetContext. getComponent()このメソッドは、このDropTargetContextに関連付けられたComponentを返します。Component型のパラメータを持つjava.awt.dndのメソッド 修飾子と型 メソッド 説明 DragGestureRecognizerDragSource. createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl)このDragSourceにDragGestureRecognizerのデフォルト抽象サブクラスを実装する新しいDragGestureRecognizerを作成し、指定されたComponentとDragGestureListenerを新しく作成されたオブジェクト上に設定します。<T extends DragGestureRecognizer>
TDragSource. createDragGestureRecognizer(Class<T> recognizerAbstractClass, Component c, int actions, DragGestureListener dgl)DragGestureRecognizerの指定された抽象サブクラスを実装する新しいDragGestureRecognizerを作成し、指定されたComponentとDragGestureListenerを新しく作成されたオブジェクト上に設定します。protected DropTarget.DropTargetAutoScrollerDropTarget. createDropTargetAutoScroller(Component c, Point p)組込み自動スクローラを作成しますvoidDragGestureRecognizer. setComponent(Component c)DragGestureRecognizerが関連付けられるComponentを設定します。registerListeners()およびunregisterListeners()は、必要に応じて副作用として呼び出されます。voidDropTarget. setComponent(Component c)ノート: このインタフェースは、DropTargetとComponentの安全な関連付けを、次の2つの方法のいずれかで許可するために必要です:component.setDropTarget(droptarget);またはdroptarget.setComponent(component);Component型のパラメータを持つjava.awt.dndのコンストラクタ コンストラクタ 説明 DragGestureRecognizer(DragSource ds, Component c)このドラッグ&ドロップ操作で使用されるDragSource、およびこのDragGestureRecognizerがドラッグ開始ジェスチャを「監視」すべきComponentを使用して、新しいDragGestureRecognizerを構築します。DragGestureRecognizer(DragSource ds, Component c, int sa)このドラッグ&ドロップ操作で使用されるDragSource、このDragGestureRecognizerがドラッグ開始ジェスチャを「監視」すべきComponent、およびこのドラッグ&ドロップ操作でサポートされるアクションを使用して、新しいDragGestureRecognizerを構築します。DragGestureRecognizer(DragSource ds, Component c, int sa, DragGestureListener dgl)このドラッグ&ドロップ操作で使用されるDragSource、このDragGestureRecognizerがドラッグ開始ジェスチャを「監視」すべきComponent、このドラッグ&ドロップ操作でサポートされるアクション、およびドラッグ開始ジェスチャが検出されたときに通知するDragGestureListenerを使用して、新しいDragGestureRecognizerを構築します。DropTarget(Component c, int ops, DropTargetListener dtl)自身を関連付けるComponent、サポートするデフォルトの許容アクションを表すint、およびイベント処理を扱うDropTargetListenerを使用して、DropTargetを作成します。DropTarget(Component c, int ops, DropTargetListener dtl, boolean act)自身を関連付けるComponent、サポートするデフォルトの許容アクションを表すint、イベント処理を扱うDropTargetListener、およびDropTargetが現在ドロップを受け入れているかどうかを示すbooleanを使用して、DropTargetを作成します。DropTarget(Component c, int ops, DropTargetListener dtl, boolean act, FlavorMap fm)自身を関連付けるComponent、サポートするデフォルトの許容アクションを表すint、イベント処理を扱うDropTargetListener、DropTargetが現在ドロップを受け入れているかどうかを示すboolean、および使用するFlavorMap(または、デフォルトのFlavorMapの場合はnull)を使用して、新しいDropTargetを作成します。DropTarget(Component c, DropTargetListener dtl)自身を関連付けるComponent、およびイベント処理を扱うDropTargetListenerを使用して、DropTargetを作成します。DropTargetAutoScroller(Component c, Point p)DropTargetAutoScrollerを構築しますMouseDragGestureRecognizer(DragSource ds, Component c)ComponentcのDragSource、および監視するComponentを使用して、新しいMouseDragGestureRecognizerを構築します。MouseDragGestureRecognizer(DragSource ds, Component c, int act)ComponentcのDragSource、監視するComponent、およびこのドラッグ操作で許可されるアクションを使用して、新しいMouseDragGestureRecognizerを構築します。MouseDragGestureRecognizer(DragSource ds, Component c, int act, DragGestureListener dgl)ComponentcのDragSource、監視するComponent、このドラッグ操作で許可されるアクション、およびドラッグ・ジェスチャが検出されたときに通知するDragGestureListenerを使用して、新しいMouseDragGestureRecognizerを構築します。 -
java.awt.eventでのComponentの使用
Componentを返すjava.awt.eventのメソッド 修飾子と型 メソッド 説明 ComponentHierarchyEvent. getChanged()変更された階層の最上位Componentを返します。ComponentContainerEvent. getChild()イベントによって影響を受けたコンポーネントを返します。ComponentComponentEvent. getComponent()イベントの発生元を返します。ComponentHierarchyEvent. getComponent()イベントの発生元を返します。ComponentFocusEvent. getOppositeComponent()このフォーカス変更に関係するもう一方のComponentを返します。Component型のパラメータを持つjava.awt.eventのコンストラクタ コンストラクタ 説明 ComponentEvent(Component source, int id)ComponentEventオブジェクトを構築します。ContainerEvent(Component source, int id, Component child)ContainerEventオブジェクトを構築します。FocusEvent(Component source, int id)FocusEventオブジェクトを構築し、フォーカスのパーマネント変更として識別します。FocusEvent(Component source, int id, boolean temporary)FocusEventオブジェクトを構築し、変更がテンポラリかどうかを識別します。FocusEvent(Component source, int id, boolean temporary, Component opposite)ComponentおよびCause.UNKNOWNの原因と反対の、指定された一時状態を持つFocusEventオブジェクトを構築します。FocusEvent(Component source, int id, boolean temporary, Component opposite, FocusEvent.Cause cause)Componentと反対の、指定された一時状態を持つFocusEventオブジェクトを作成します。HierarchyEvent(Component source, int id, Component changed, Container changedParent)Component階層の変更を識別するためのHierarchyEventオブジェクトを構築します。HierarchyEvent(Component source, int id, Component changed, Container changedParent, long changeFlags)Component階層の変更を識別するためのHierarchyEventオブジェクトを構築します。InputMethodEvent(Component source, int id, long when, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition)指定されたソース・コンポーネント、型、時間、text、caret、およびvisiblePositionで、InputMethodEventを構築します。InputMethodEvent(Component source, int id, TextHitInfo caret, TextHitInfo visiblePosition)指定されたソース・コンポーネント、型、caret、およびvisiblePositionで、InputMethodEventを構築します。InputMethodEvent(Component source, int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition)指定されたソース・コンポーネント、型、text、caret、およびvisiblePositionで、InputMethodEventを構築します。KeyEvent(Component source, int id, long when, int modifiers, int keyCode)非推奨。JDK 1.1以降。代わりにKeyEvent(Component, int, long, int, int, char)を使用してくださいKeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar)KeyEventオブジェクトを構築します。KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar, int keyLocation)KeyEventオブジェクトを構築します。MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger)指定されたソース・コンポーネント、型、修飾子、座標、クリック・カウント、popupTriggerフラグで、MouseEventオブジェクトを構築します。MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button)指定されたソース・コンポーネント、型、時間、修飾子、座標、クリック・カウント、popupTriggerフラグ、ボタン番号で、MouseEventオブジェクトを構築します。MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int button)指定されたソース・コンポーネント、型、時間、修飾子、座標、絶対座標、クリック・カウント、popupTriggerフラグ、ボタン番号で、MouseEventオブジェクトを構築します。MouseWheelEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation)指定されたソース・コンポーネント、タイプ、修飾子、座標、スクロール・タイプ、スクロール量、およびホイール回転で、MouseWheelEventオブジェクトを構築します。MouseWheelEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation)指定されたソース・コンポーネント、タイプ、修飾子、座標、絶対座標、スクロール・タイプ、スクロール量、およびホイール回転で、MouseWheelEventオブジェクトを構築します。MouseWheelEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation, double preciseWheelRotation)指定されたソース・コンポーネント、タイプ、修飾子、座標、絶対座標、スクロール・タイプ、スクロール量、およびホイール回転で、MouseWheelEventオブジェクトを構築します。PaintEvent(Component source, int id, Rectangle updateRect)指定されたソース・コンポーネントとタイプで、PaintEventオブジェクトを構築します。 -
java.awt.imでのComponentの使用
Component型のパラメータを持つjava.awt.imのメソッド 修飾子と型 メソッド 説明 voidInputContext. removeNotify(Component client)包含関係の階層からクライアント・コンポーネントが削除されたか、またはコンポーネントでインプット・メソッドがサポートされなくなったことを入力コンテキストに通知します。 -
java.beansでのComponentの使用
Componentを返すjava.beansのメソッド 修飾子と型 メソッド 説明 ComponentPropertyEditor. getCustomEditor()PropertyEditorは、プロパティ値を編集する完全なカスタム・コンポーネントを提供することができます。ComponentPropertyEditorSupport. getCustomEditor()PropertyEditorは、プロパティ値を編集する完全なカスタム・コンポーネントを提供することができます。 -
java.beans.beancontextでのComponentの使用
Componentを返すjava.beans.beancontextのメソッド 修飾子と型 メソッド 説明 ComponentBeanContextChildComponentProxy. getComponent()このBeanContextChildに関連付けられているjava.awt.Componentを取得します。 -
javax.swingでのComponentの使用
Component型の型パラメータを持つjavax.swingのクラス 修飾子と型 クラス 説明 classJLayer<V extends Component>JLayerは、さまざまな高度なペイント効果を実装したり、そのボーダー内で生成されるすべてのAWTEventの通知を受信したりするために使用できる、Swingコンポーネントのための汎用のデコレータです。javax.swingでのComponentのサブクラス 修飾子と型 クラス 説明 classAbstractButtonボタンおよびメニュー項目の共通動作を定義します。classBoxBoxLayoutオブジェクトをレイアウト・マネージャとして使う軽量なコンテナです。static classBox.Fillerレイアウトに含まれるがビューを持たない軽量コンポーネントの実装です。classCellRendererPaneこのクラスは、セル・レンダラとそれを使うコンポーネントの間に挿入されます。classDefaultListCellRendererリスト内の項目をレンダリングします。static classDefaultListCellRenderer.UIResourceUIResourceを実装するDefaultListCellRendererのサブクラスです。classJApplet非推奨。アプレットAPIは非推奨であり、代替はありません。classJButton「プッシュ」ボタンの実装です。classJCheckBoxチェックボックス(選択または選択解除が可能で、その状態をユーザーに表示する項目)の実装です。classJCheckBoxMenuItem選択または選択解除できるメニュー項目です。classJColorChooserJColorChooserは、ユーザーが色を操作したり、選択したりできるように設計されたコントロールのペインを提供します。classJComboBox<E>ボタン、または編集可能フィールドとドロップ・ダウン・リストを組み合わせたコンポーネントです。classJComponentトップ・レベルのコンテナを除くすべてのSwingコンポーネントの基底クラスです。classJDesktopPaneマルチドキュメント・インタフェースまたは仮想デスクトップを生成するコンテナです。classJDialogダイアログ・ウィンドウを作成するためのメイン・クラスです。classJEditorPaneさまざまな種類のコンテンツを編集するためのテキスト・コンポーネントです。classJFileChooserJFileChooserは、ユーザーがファイルを選択するための単純なメカニズムを提供します。classJFormattedTextFieldJFormattedTextFieldはJTextFieldを拡張して、任意の値をフォーマットしたり、ユーザーがテキストを編集したあとに特定のオブジェクトを取得したりするためのサポートを追加します。classJFrameJFC/Swingコンポーネント・アーキテクチャのサポートを追加するjava.awt.Frameの拡張バージョン。classJInternalFrameネイティブなフレームに、ドラッグ、クローズ、アイコン化、サイズ変更、タイトル表示、およびメニュー・バーのサポートなど、多くの機能を提供する軽量オブジェクトです。static classJInternalFrame.JDesktopIconこのコンポーネントは、JInternalFrameのアイコン化されたバージョンを表します。classJLabel短いテキスト文字列やイメージの表示領域です。両方を一緒に表示することもできます。classJLayer<V extends Component>JLayerは、さまざまな高度なペイント効果を実装したり、そのボーダー内で生成されるすべてのAWTEventの通知を受信したりするために使用できる、Swingコンポーネントのための汎用のデコレータです。classJLayeredPaneJLayeredPaneはJFC/Swingコンテナに深さを追加し、コンポーネントが必要に応じて互いにオーバーラップできるようにします。classJList<E>オブジェクトのリストを表示し、ユーザーが1つまたは複数のオブジェクトを選択できるようにするコンポーネントです。classJMenuメニュー(ユーザーがJMenuBarの項目を選択したときに表示される、JMenuItemを含むポップアップ・ウィンドウ)の実装です。classJMenuBarメニュー・バーの実装です。classJMenuItemメニューの項目の実装です。classJOptionPaneJOptionPaneは、ユーザーに値の入力を求めたり、何らかの情報を通知したりするための標準のダイアログ・ボックスを容易にポップアップできるようにします。classJPanelJPanelは、ジェネリックな軽量コンテナです。classJPasswordFieldJPasswordFieldは、1行のテキストの編集を可能にする軽量コンポーネントです。何かが入力されたことはビューに示されますが、元の文字は表示されません。classJPopupMenuポップアップ・メニュー(一連の選択肢をポップアップおよび表示する小さなウィンドウ)の実装です。static classJPopupMenu.Separatorポップアップ・メニュー固有のセパレータです。classJProgressBar一部のタスクの進捗状況を視覚的に表示するコンポーネントです。classJRadioButtonラジオ・ボタン(選択または選択解除が可能で、その状態をユーザーに表示する項目)の実装です。classJRadioButtonMenuItemラジオ・ボタン・メニュー項目の実装です。classJRootPaneJFrame、JDialog、JWindow、JApplet、およびJInternalFrameによって内部的に使用される軽量コンテナ。classJScrollBarスクロール・バーの実装です。classJScrollPane軽量コンポーネントのスクロール可能なビューを提供します。protected classJScrollPane.ScrollBarJScrollPaneはデフォルトで、このクラスのインスタンスであるスクロール・バーを作成します。classJSeparatorJSeparatorは、区切り線を実装するための汎用的なコンポーネントを提供します。もっとも一般的には、メニュー項目を論理的なグループに分割するための項目間の区切り線として使用されます。classJSliderユーザーが指定された区間内でノブをスライドすることによりグラフィカルに値を選択できるようにするコンポーネントです。classJSpinnerユーザーが、順序付けられたシーケンスから数またはオブジェクトを選択できるようにする単一行の入力フィールドです。static classJSpinner.DateEditorモデルがSpinnerDateModelであるJSpinnerのエディタ。static classJSpinner.DefaultEditorJFormattedTextFieldを使用してモデルの現在の値の読取り専用ビューを表示する、より特殊なエディタの単純な基底クラス。static classJSpinner.ListEditorモデルがSpinnerListModelであるJSpinnerのエディタ。static classJSpinner.NumberEditorモデルがSpinnerNumberModelであるJSpinnerのエディタ。classJSplitPaneJSplitPaneは、2つ(2つだけ)のComponentを分割するために使用されます。classJTabbedPane指定されたタイトルやアイコンを持つタブをクリックすることにより、ユーザーがコンポーネントのグループを切り替えられるようにするコンポーネントです。classJTableJTableは、セルの通常の2次元テーブルを表示および編集するために使用されます。classJTextAreaJTextAreaは、プレーン・テキストを表示する複数行の領域です。classJTextFieldJTextFieldは、1行のテキストの編集を可能にする軽量コンポーネントです。classJTextPaneグラフィックで表現される属性でマークアップできるテキスト・コンポーネントです。classJToggleButton2つの状態を持つボタンの実装です。classJToolBarJToolBarは、一般的に使用されるActionまたはコントロールを表示するのに役立つコンポーネントを提供します。static classJToolBar.Separatorツールバー独自のセパレータです。classJToolTipComponentの「ヒント」を表示するために使います。classJTree階層データのセットをアウトラインとして表示するコントロール。classJViewportベースとなる情報を見るために使用する「ビュー・ポート(窓)」です。classJWindowJWindowは、ユーザーのデスクトップ上のどこにでも表示できるコンテナです。Componentとして宣言されているjavax.swingのフィールド 修飾子と型 フィールド 説明 protected static ComponentImageIcon. component非推奨。since 1.8protected ComponentJTable. editorComp編集時であれば、編集を処理しているComponentです。protected ComponentJRootPane. glassPaneメニュー・バーとコンテンツ・ペインにオーバーレイするガラス・ペインです。マウスの動作などを捕捉できます。protected ComponentJLabel. labelForこのラベルのコンポーネントです; ラベルがコンポーネントのラベルでない場合はnullprotected ComponentJSplitPane. leftComponent左または上のコンポーネントです。protected ComponentJScrollPane. lowerLeft左下隅に表示するコンポーネントです。protected ComponentScrollPaneLayout. lowerLeft左下隅に表示するコンポーネントです。protected ComponentJScrollPane. lowerRight右下隅に表示するコンポーネントです。protected ComponentScrollPaneLayout. lowerRight右下隅に表示するコンポーネントです。protected ComponentJSplitPane. rightComponent右または下のコンポーネントです。protected ComponentJScrollPane. upperLeft左上隅に表示するコンポーネントです。protected ComponentScrollPaneLayout. upperLeft左上隅に表示するコンポーネントです。protected ComponentJScrollPane. upperRight右上隅に表示するコンポーネントです。protected ComponentScrollPaneLayout. upperRight右上隅に表示するコンポーネントです。Componentを返すjavax.swingのメソッド 修飾子と型 メソッド 説明 ComponentJMenu. add(Component c)このメニューの最後にコンポーネントを追加します。ComponentJMenu. add(Component c, int index)指定されたコンポーネントを、このコンテナの指定された位置に追加します。ComponentJTabbedPane. add(Component component)component.getNameの呼出しの結果であるコンポーネントの名前がデフォルトで設定されたタブ・タイトルを持つcomponentを追加します。ComponentJTabbedPane. add(Component component, int index)コンポーネントの名前がデフォルトで設定されたタブ・タイトルを持つcomponentを、指定されたタブ・インデックス位置に追加します。ComponentJTabbedPane. add(String title, Component component)指定されたタブ・タイトルを持つcomponentを追加します。protected ComponentScrollPaneLayout. addSingletonComponent(Component oldC, Component newC)既存のコンポーネントを削除します。ComponentMenuSelectionManager. componentForPoint(Component source, Point sourcePoint)sourcePointを含んでいる、現在選択されているパスのコンポーネントを返します。protected ComponentJRootPane. createGlassPane()デフォルトのglassPaneを作成するために、コンストラクタ・メソッドから呼び出されます。static ComponentBox. createGlue()不可視の「接着剤」コンポーネントを作成します。これは、可視コンポーネントに水平ボックスに対する最大幅や垂直ボックスに対する最大高が指定されているBoxに便利です。static ComponentBox. createHorizontalGlue()水平方向の接着剤コンポーネントを作成します。static ComponentBox. createHorizontalStrut(int width)不可視の固定幅コンポーネントを生成します。static ComponentBox. createRigidArea(Dimension d)常に指定されたサイズである、不可視コンポーネントを生成します。static ComponentBox. createVerticalGlue()垂直方向の接着剤コンポーネントを作成します。static ComponentBox. createVerticalStrut(int height)不可視の、高さが固定されたコンポーネントを作成します。static ComponentSwingUtilities. findFocusOwner(Component c)非推奨。1.4で、KeyboardFocusManager.getFocusOwner()に置き換えられます。ComponentJSplitPane. getBottomComponent()ディバイダの下または右のコンポーネントを返します。ComponentDefaultCellEditor. getComponent()エディタ・コンポーネントへの参照を返します。ComponentJMenu. getComponent()このMenuElementをペイントするのに使われるjava.awt.Componentを返します。ComponentJMenuBar. getComponent()MenuElementとして実装されます。ComponentJMenuItem. getComponent()このオブジェクトをペイントするのに使われるjava.awt.Componentを返します。ComponentJPopupMenu. getComponent()このJPopupMenuコンポーネントを返します。ComponentMenuElement. getComponent()このメソッドは、受信要素をペイントするために使用されるjava.awt.Componentを返す必要があります。ComponentRenderer. getComponent()値をレンダリングするために使用されるコンポーネントを返します。ComponentTransferHandler.TransferSupport. getComponent()この転送のターゲット・コンポーネントを返します。ComponentDefaultFocusManager. getComponentAfter(Container aContainer, Component aComponent)後のコンポーネントを返します。ComponentLayoutFocusTraversalPolicy. getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。ComponentSortingFocusTraversalPolicy. getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。ComponentJTabbedPane. getComponentAt(int index)indexのコンポーネントを返します。ComponentJMenuBar. getComponentAtIndex(int i)非推奨。getComponent(int i)に置き換えられますComponentJPopupMenu. getComponentAtIndex(int i)非推奨。Container.getComponent(int)に置き換えられますComponentJToolBar. getComponentAtIndex(int i)指定されたインデックスの要素を返します。ComponentDefaultFocusManager. getComponentBefore(Container aContainer, Component aComponent)前のコンポーネントを返します。ComponentLayoutFocusTraversalPolicy. getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。ComponentSortingFocusTraversalPolicy. getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。Component[]JLayeredPane. getComponentsInLayer(int layer)指定されたレイヤーのコンポーネントの配列を返します。ComponentJScrollPane. getCorner(String key)指定されたコーナーにあるコンポーネントを返します。ComponentScrollPaneLayout. getCorner(String key)指定されたコーナーにあるComponentを返します。protected ComponentJTable.AccessibleJTable.AccessibleJTableCell. getCurrentComponent()テーブル・セル・レンダラ・コンポーネントを取得します。static ComponentSwingUtilities. getDeepestComponentAt(Component parent, int x, int y)位置x、yを含むparentの、もっとも深い可視の子孫Componentを返します。ComponentSortingFocusTraversalPolicy. getDefaultComponent(Container aContainer)フォーカスするデフォルトのComponentを返します。ComponentComboBoxEditor. getEditorComponent()このエディタのツリー階層に追加するコンポーネントを返します。ComponentJTable. getEditorComponent()編集セッションを処理しているコンポーネントを返します。ComponentDefaultFocusManager. getFirstComponent(Container aContainer)最初のコンポーネントを返します。ComponentLayoutFocusTraversalPolicy. getFirstComponent(Container aContainer)トラバーサル・サイクルの最初のComponentを返します。ComponentSortingFocusTraversalPolicy. getFirstComponent(Container aContainer)トラバーサル・サイクルの最初のComponentを返します。ComponentJInternalFrame. getFocusOwner()このJInternalFrameがアクティブである場合、フォーカスを持つ子を返します。ComponentJApplet. getGlassPane()非推奨。このアプレットのglassPaneオブジェクトを返します。ComponentJDialog. getGlassPane()このダイアログのglassPaneオブジェクトを返します。ComponentJFrame. getGlassPane()このフレームのglassPaneオブジェクトを返します。ComponentJInternalFrame. getGlassPane()この内部フレームのガラス・ペインを返します。ComponentJRootPane. getGlassPane()このJRootPaneの現在のガラス・ペインを返します。ComponentJWindow. getGlassPane()このウィンドウのglassPane Componentを返します。ComponentRootPaneContainer. getGlassPane()glassPaneを返します。ComponentInternalFrameFocusTraversalPolicy. getInitialComponent(JInternalFrame frame)JinternalFrameが最初に選択されたときにフォーカスを受け取るComponentを返します。ComponentJPopupMenu. getInvoker()このポップアップ・メニューの呼出し側であるコンポーネントを返します。ComponentJLabel. getLabelFor()このラベルが割り当てられているコンポーネントを返します。ComponentDefaultFocusManager. getLastComponent(Container aContainer)最後のコンポーネントを返します。ComponentLayoutFocusTraversalPolicy. getLastComponent(Container aContainer)トラバーサル・サイクルの最後のComponentを返します。ComponentSortingFocusTraversalPolicy. getLastComponent(Container aContainer)トラバーサル・サイクルの最後のComponentを返します。ComponentJSplitPane. getLeftComponent()ディバイダの左(上)にあるコンポーネントを返します。ComponentListCellRenderer. getListCellRendererComponent(JList<? extends E> list, E value, int index, boolean isSelected, boolean cellHasFocus)指定された値を表示するように設定されたコンポーネントを返します。ComponentJMenu. getMenuComponent(int n)nの位置にあるコンポーネントを返します。Component[]JMenu. getMenuComponents()メニューのサブコンポーネントのComponentの配列を返します。ComponentJInternalFrame. getMostRecentFocusOwner()このJInternalFrameが選択されたときにフォーカスを受け取る、このJInternalFrameの子コンポーネントを返します。ComponentJComponent. getNextFocusableComponent()非推奨。1.4で、FocusTraversalPolicyに置き換えられます。ComponentJSplitPane. getRightComponent()ディバイダの右(または下)のコンポーネントを返します。static ComponentSwingUtilities. getRoot(Component c)現在のコンポーネント・ツリーのルート・コンポーネントを返します。ComponentJTabbedPane. getSelectedComponent()このタブ・ペインで現在選択されているコンポーネントを返します。ComponentJTabbedPane. getTabComponentAt(int index)indexのタブ・コンポーネントを返します。ComponentDefaultCellEditor. getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)TableCellEditorインタフェースを実装します。ComponentJSplitPane. getTopComponent()ディバイダの上または左のコンポーネントを返します。ComponentDefaultCellEditor. getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)TreeCellEditorインタフェースを実装します。static ComponentSwingUtilities. getUnwrappedView(JViewport viewport)JLayerのインスタンスではない、JViewportの最初の子孫を返します。ComponentJViewport. getView()JViewportの1つの子またはnullを返します。ComponentJTable. prepareEditor(TableCellEditor editor, int row, int column)row、columnの位置にあるセルの値および選択状態をデータ・モデルに照会して、エディタを準備します。ComponentJTable. prepareRenderer(TableCellRenderer renderer, int row, int column)row、columnの位置にあるセルの値および選択状態をデータ・モデルに照会して、レンダラを準備します。Component型の引数を持つ型を返すjavax.swingのメソッド 修飾子と型 メソッド 説明 protected Comparator<? super Component>SortingFocusTraversalPolicy. getComparator()フォーカス・トラバーサル・サイクルでComponentsをソートするために使うComparatorを返します。protected Hashtable<Component,Integer>JLayeredPane. getComponentToLayer()コンポーネントをレイヤーにマッピングするハッシュ・テーブルを返します。Component型のパラメータを持つjavax.swingのメソッド 修飾子と型 メソッド 説明 protected booleanLayoutFocusTraversalPolicy. accept(Component aComponent)指定されたComponentが新しいフォーカス所有者として適切かどうかを判定します。protected booleanSortingFocusTraversalPolicy. accept(Component aComponent)Componentが新しいフォーカス所有者として適切かどうかを判定します。ComponentJMenu. add(Component c)このメニューの最後にコンポーネントを追加します。ComponentJMenu. add(Component c, int index)指定されたコンポーネントを、このコンテナの指定された位置に追加します。ComponentJTabbedPane. add(Component component)component.getNameの呼出しの結果であるコンポーネントの名前がデフォルトで設定されたタブ・タイトルを持つcomponentを追加します。ComponentJTabbedPane. add(Component component, int index)コンポーネントの名前がデフォルトで設定されたタブ・タイトルを持つcomponentを、指定されたタブ・インデックス位置に追加します。voidJTabbedPane. add(Component component, Object constraints)タブ・ペインにcomponentを追加します。voidJTabbedPane. add(Component component, Object constraints, int index)指定したタブのインデックスにcomponentを追加します。ComponentJTabbedPane. add(String title, Component component)指定されたタブ・タイトルを持つcomponentを追加します。GroupLayout.GroupGroupLayout.Group. addComponent(Component component)ComponentをこのGroupに追加します。GroupLayout.GroupGroupLayout.Group. addComponent(Component component, int min, int pref, int max)ComponentをこのGroupに指定されたサイズで追加します。GroupLayout.ParallelGroupGroupLayout.ParallelGroup. addComponent(Component component, GroupLayout.Alignment alignment)ComponentをこのParallelGroupに指定された配置で追加します。GroupLayout.ParallelGroupGroupLayout.ParallelGroup. addComponent(Component component, GroupLayout.Alignment alignment, int min, int pref, int max)このComponentをParallelGroupに指定の配置とサイズで追加します。GroupLayout.SequentialGroupGroupLayout.SequentialGroup. addComponent(boolean useAsBaseline, Component component)ComponentをこのGroupに追加します。GroupLayout.SequentialGroupGroupLayout.SequentialGroup. addComponent(boolean useAsBaseline, Component component, int min, int pref, int max)ComponentをこのGroupに指定されたサイズで追加します。protected voidAbstractButton. addImpl(Component comp, Object constraints, int index)指定されたコンポーネントをこのコンテナのインデックスで指定された位置に追加します。このメソッドの詳細については、Container.addImpl(Component, Object, int)を参照してください。protected voidCellRendererPane. addImpl(Component x, Object constraints, int index)指定したコンポーネントがすでにこれの子である場合、処理は不要です。重なる順番はセル・レンダラ・コンポーネントでは問題にはなりません。CellRendererPaneはいずれの場合もペイントしません。protected voidJApplet. addImpl(Component comp, Object constraints, int index)非推奨。指定された子Componentを追加します。protected voidJDesktopPane. addImpl(Component comp, Object constraints, int index)指定されたコンポーネントを、指定されたインデックスで、コンテナへ追加します。protected voidJDialog. addImpl(Component comp, Object constraints, int index)指定された子Componentを追加します。protected voidJFrame. addImpl(Component comp, Object constraints, int index)指定された子Componentを追加します。protected voidJInternalFrame. addImpl(Component comp, Object constraints, int index)指定された子Componentを追加します。protected voidJLayer. addImpl(Component comp, Object constraints, int index)このメソッドはJLayerではサポートされていません。このメソッドは常にUnsupportedOperationExceptionをスローします。protected voidJRootPane. addImpl(Component comp, Object constraints, int index)ガラス・コンポーネントの位置を子0として適用するためにオーバーライドされます。protected voidJSplitPane. addImpl(Component comp, Object constraints, int index)この分割ペインに指定したコンポーネントを追加します。protected voidJToolBar. addImpl(Component comp, Object constraints, int index)JButtonが追加されると、初期状態では使用不可に設定されます。protected voidJViewport. addImpl(Component child, Object constraints, int index)JViewportの1つの軽量な子を設定します。nullも指定できます。protected voidJWindow. addImpl(Component comp, Object constraints, int index)指定された子Componentを追加します。voidBoxLayout. addLayoutComponent(Component comp, Object constraints)このクラスでは使用しません。voidBoxLayout. addLayoutComponent(String name, Component comp)このクラスでは使用しません。voidGroupLayout. addLayoutComponent(Component component, Object constraints)Componentが親コンテナに追加されたことを示す通知。voidGroupLayout. addLayoutComponent(String name, Component component)Componentが親コンテナに追加されたことを示す通知。voidJSpinner.DefaultEditor. addLayoutComponent(String name, Component child)このLayoutManagerメソッドは何も行いません。voidOverlayLayout. addLayoutComponent(Component comp, Object constraints)指定された制約オブジェクトを使って、指定されたコンポーネントをレイアウトに追加します。voidOverlayLayout. addLayoutComponent(String name, Component comp)指定されたコンポーネントをレイアウトに追加します。voidScrollPaneLayout. addLayoutComponent(String s, Component c)指定されたコンポーネントをレイアウトに追加します。voidSpringLayout. addLayoutComponent(Component component, Object constraints)constraintsがSpringLayout.Constraintsのインスタンスである場合は、指定されたコンポーネントに制約を関連付けます。voidSpringLayout. addLayoutComponent(String name, Component c)このレイアウト・マネージャはコンポーネントごとの文字列を使用しないため、何もしません。voidViewportLayout. addLayoutComponent(String name, Component c)指定されたコンポーネントをレイアウトに追加します。protected ComponentScrollPaneLayout. addSingletonComponent(Component oldC, Component newC)既存のコンポーネントを削除します。voidJTabbedPane. addTab(String title, Component component)titleで表される(アイコンなし)componentを追加します。voidJTabbedPane. addTab(String title, Icon icon, Component component)titleまたはicon、あるいはその両方(どちらかはnullでもかまわない)で表されるcomponentを追加します。voidJTabbedPane. addTab(String title, Icon icon, Component component, String tip)titleまたはicon、あるいはその両方(どちらかはnullでもかまわない)で表されるcomponentおよびtipを追加します。booleanDefaultFocusManager. compareTabOrder(Component a, Component b)フォーカス・トラバーサル・サイクルの順序でコンポーネントを比較します。ComponentMenuSelectionManager. componentForPoint(Component source, Point sourcePoint)sourcePointを含んでいる、現在選択されているパスのコンポーネントを返します。static MouseEventSwingUtilities. convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination)sourceEventと同様のMouseEventを返します(そのxとyメンバーがdestinationの座標体系に変換済みの場合を除く)。static PointSwingUtilities. convertPoint(Component source, int x, int y, Component destination)source座標系内のポイント(x,y)をdestination座標系に変換します。static PointSwingUtilities. convertPoint(Component source, Point aPoint, Component destination)source座標系内のaPointをdestination座標系に変換します。static voidSwingUtilities. convertPointFromScreen(Point p, Component c)点を画面座標からコンポーネントの座標体系に変換します。static voidSwingUtilities. convertPointToScreen(Point p, Component c)点をコンポーネントの座標体系から画面座標に変換します。static RectangleSwingUtilities. convertRectangle(Component source, Rectangle aRectangle, Component destination)source座標系内の矩形aRectangleをdestination座標系に変換します。static JDialogJColorChooser. createDialog(Component c, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener)「OK」、「取消」、および「リセット」ボタンとともに指定されたColorChooserペインを含む新しいダイアログを作成して返します。protected JDialogJFileChooser. createDialog(Component parent)parentのフレーム内のparentの中央にthisをラップしている新しいJDialogを作成して返します。JDialogJOptionPane. createDialog(Component parentComponent, String title)parentComponentのフレーム内のparentComponentの中央にthisをラップしている新しいJDialogを作成して返します。JInternalFrameJOptionPane. createInternalFrame(Component parentComponent, String title)JInternalFrameのインスタンスを生成し、それを返します。static RepaintManagerRepaintManager. currentManager(Component c)Componentを指定して、呼出し側スレッドのRepaintManagerを返します。static ComponentSwingUtilities. findFocusOwner(Component c)非推奨。1.4で、KeyboardFocusManager.getFocusOwner()に置き換えられます。static AccessibleSwingUtilities. getAccessibleAt(Component c, Point p)ローカル座標のPointに含まれているAccessible子が存在する場合は、それを返します。static AccessibleSwingUtilities. getAccessibleChild(Component c, int i)オブジェクトのn番目のAccessible子を返します。static intSwingUtilities. getAccessibleChildrenCount(Component c)オブジェクト内のアクセシビリティ対応の子の数を返します。static intSwingUtilities. getAccessibleIndexInParent(Component c)このオブジェクトの、そのAccessible親でのインデックスを取得します。static AccessibleStateSetSwingUtilities. getAccessibleStateSet(Component c)このオブジェクトの状態を取得します。static ContainerSwingUtilities. getAncestorNamed(String name, Component comp)コンポーネント階層内のcompの上位を検索するための簡易メソッドであり、見つかったnameの最初のオブジェクトを返します。static ContainerSwingUtilities. getAncestorOfClass(Class<?> c, Component comp)コンポーネント階層内のcompの上位を検索するための簡易メソッドであり、見つかったクラスcの最初のオブジェクトを返します。ComponentDefaultFocusManager. getComponentAfter(Container aContainer, Component aComponent)後のコンポーネントを返します。ComponentLayoutFocusTraversalPolicy. getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。ComponentSortingFocusTraversalPolicy. getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。ComponentDefaultFocusManager. getComponentBefore(Container aContainer, Component aComponent)前のコンポーネントを返します。ComponentLayoutFocusTraversalPolicy. getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。ComponentSortingFocusTraversalPolicy. getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。intJMenuBar. getComponentIndex(Component c)指定されたコンポーネントのインデックスを返します。intJPopupMenu. getComponentIndex(Component c)指定されたコンポーネントのインデックスを返します。intJToolBar. getComponentIndex(Component c)指定されたコンポーネントのインデックスを返します。SpringSpringLayout. getConstraint(String edgeName, Component c)コンポーネントの指定されたエッジと親の上端または左端との間の距離を制御するスプリングを返します。SpringLayout.ConstraintsSpringLayout. getConstraints(Component c)指定されたコンポーネントの制約を返します。static ComponentSwingUtilities. getDeepestComponentAt(Component parent, int x, int y)位置x、yを含むparentの、もっとも深い可視の子孫Componentを返します。static JDesktopPaneJOptionPane. getDesktopPaneForComponent(Component parentComponent)指定されたコンポーネントのデスクトップ・ペインを返します。static FrameJOptionPane. getFrameForComponent(Component parentComponent)指定されたコンポーネントのFrameを返します。intJLayeredPane. getIndexOf(Component c)指定されたComponentのインデックスを返します。intJLayeredPane. getLayer(Component c)指定されたComponentのレイヤー属性を返します。static JLayeredPaneJLayeredPane. getLayeredPaneAbove(Component c)指定されたコンポーネントを含む最初のJLayeredPaneを返す簡易メソッドです。static RectangleSwingUtilities. getLocalBounds(Component aComponent)コンポーネントaComponentの矩形(0,0,bounds.width,bounds.height)を返します。ImageRepaintManager. getOffscreenBuffer(Component c, int proposedWidth, int proposedHeight)コンポーネントcとともにdoubleバッファとして使用されるオフスクリーン・バッファを返します。PopupPopupFactory. getPopup(Component owner, Component contents, int x, int y)Componentcontentsを含むComponentownerのPopupを作成します。protected PopupPopupFactory. getPopup(Component owner, Component contents, int x, int y, boolean isHeavyWeightPopup)Componentcontentsを含むComponentownerのPopupを作成します。intJLayeredPane. getPosition(Component c)レイヤー内でのコンポーネントの相対位置を返します。static ComponentSwingUtilities. getRoot(Component c)現在のコンポーネント・ツリーのルート・コンポーネントを返します。static JRootPaneSwingUtilities. getRootPane(Component c)cが下位JRootPane子孫の場合は、そのJRootPane祖先を返します。static ContainerSwingUtilities. getUnwrappedParent(Component component)JLayerのインスタンスではない、componentの最初の祖先を返します。ImageRepaintManager. getVolatileOffscreenBuffer(Component c, int proposedWidth, int proposedHeight)指定されたコンポーネントcとともにdoubleバッファとして使用されるvolatileオフスクリーン・バッファを返します。static WindowSwingUtilities. getWindowAncestor(Component c)cの最初のWindow祖先か、またはcがWindowの内部に含まれていない場合はnullを返します。static SpringSpring. height(Component c)minimum、preferred、maximum、およびvalueの各プロパティが、それぞれ指定されたコンポーネントのminimumSize、preferredSize、maximumSize、およびsizeの各プロパティの高さで定義されているスプリングを返します。intJTabbedPane. indexOfComponent(Component component)指定されたコンポーネントのタブのインデックスを返します。intJTabbedPane. indexOfTabComponent(Component tabComponent)指定されたタブ・コンポーネントのタブのインデックスを返します。voidJPopupMenu. insert(Component component, int index)指定されたコンポーネントを、メニューの指定された位置に挿入します。voidJTextPane. insertComponent(Component c)現在選択されている内容の置換としてドキュメントにコンポーネントを挿入します。voidJTabbedPane. insertTab(String title, Icon icon, Component component, String tip, int index)指定されたtitleまたはicon、あるいはその両方(どちらかはnullでもかまわない)で表される、指定されたcomponentの新しいタブを、指定されたindexの位置に挿入します。booleanMenuSelectionManager. isComponentPartOfCurrentMenu(Component c)cが現在使用されているメニューの一部である場合はtrueを返します。static booleanSwingUtilities. isDescendingFrom(Component a, Component b)コンポーネントaがコンポーネントbの子孫である場合、trueを返します。static booleanJComponent. isLightweightComponent(Component c)このコンポーネントが軽量の場合、つまりネイティブのウィンドウ・システム・ピアを持たない場合にtrueを返します。booleanJMenu. isMenuComponent(Component c)指定されたコンポーネントがサブメニュー階層内にある場合にtrueを返します。voidGroupLayout. linkSize(int axis, Component... components)指定のコンポーネントを、適切なサイズ、最小サイズ、または最大サイズを考慮せず、同じサイズに設定し、指定の軸に沿って配置します。voidGroupLayout. linkSize(Component... components)指定のコンポーネントを、適切なサイズ、最小サイズ、または最大サイズを考慮せず、同じサイズに設定します。voidJLayeredPane. moveToBack(Component c)コンポーネントを現在のレイヤーでいちばん下(位置 -1)に移動します。voidJLayeredPane. moveToFront(Component c)コンポーネントを現在のレイヤーでいちばん上(位置0)に移動します。voidCellRendererPane. paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)this.paintComponent(g, c, p, x, y, w, h, false)を呼び出します。voidCellRendererPane. paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate)セル・レンダラ・コンポーネントcをグラフィックス・オブジェクトgにペイントします。voidCellRendererPane. paintComponent(Graphics g, Component c, Container p, Rectangle r)矩形のx、y、幅、高さの各フィールドを使ってthis.paintComponent()を呼び出します。static voidSwingUtilities. paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)指定されたGraphicsで、コンポーネントをペイントします。static voidSwingUtilities. paintComponent(Graphics g, Component c, Container p, Rectangle r)指定されたGraphicsで、コンポーネントをペイントします。voidIcon. paintIcon(Component c, Graphics g, int x, int y)指定された位置にアイコンを描画します。voidImageIcon. paintIcon(Component c, Graphics g, int x, int y)アイコンをペイントします。voidLookAndFeel. provideErrorFeedback(Component component)ユーザーが、フォーカスを持つ編集不可能なJTextFieldへのペーストなどの無効な操作を行おうとしたときに呼び出されます。voidSpringLayout. putConstraint(String e1, Component c1, int pad, String e2, Component c2)コンポーネントc1のエッジe1をコンポーネントc2のエッジe2にリンクします。エッジ間の距離は固定です。voidSpringLayout. putConstraint(String e1, Component c1, Spring s, String e2, Component c2)コンポーネントc1のエッジe1をコンポーネントc2のエッジe2にリンクします。voidJApplet. remove(Component comp)非推奨。指定されたコンポーネントをコンテナから削除します。voidJDialog. remove(Component comp)指定されたコンポーネントをコンテナから削除します。voidJFrame. remove(Component comp)指定されたコンポーネントをコンテナから削除します。voidJInternalFrame. remove(Component comp)指定されたコンポーネントをコンテナから削除します。voidJMenu. remove(Component c)このメニューからコンポーネントcを削除します。voidJSplitPane. remove(Component component)子コンポーネントcomponentをペインから削除します。voidJTabbedPane. remove(Component component)JTabbedPaneから指定されたComponentを削除します。voidJViewport. remove(Component child)Viewportの1つの軽量な子を削除します。voidJWindow. remove(Component comp)指定されたコンポーネントをコンテナから削除します。voidBoxLayout. removeLayoutComponent(Component comp)このクラスでは使用しません。voidGroupLayout. removeLayoutComponent(Component component)親コンテナからComponentが削除されたことを示す通知です。voidJSpinner.DefaultEditor. removeLayoutComponent(Component child)このLayoutManagerメソッドは何も行いません。voidOverlayLayout. removeLayoutComponent(Component comp)指定されたコンポーネントをレイアウトから削除します。voidScrollPaneLayout. removeLayoutComponent(Component c)指定されたコンポーネントをレイアウトから削除します。voidSpringLayout. removeLayoutComponent(Component c)指定されたコンポーネントに関連付けれられた制約を削除します。voidViewportLayout. removeLayoutComponent(Component c)指定されたコンポーネントをレイアウトから削除します。voidGroupLayout. replace(Component existingComponent, Component newComponent)既存のコンポーネントを新しいコンポーネントで置き換えます。voidJSplitPane. setBottomComponent(Component comp)コンポーネントをディバイダの下または右に設定します。voidJScrollPane. setColumnHeaderView(Component view)必要に応じて列ヘッダーのビュー・ポートを作成し、ビューを設定してから、列ヘッダーのビュー・ポートをスクロール・ペインに追加します。voidJTabbedPane. setComponentAt(int index, Component component)indexのコンポーネントをcomponentに設定します。voidJDesktopPane. setComponentZOrder(Component comp, int index)指定されたコンポーネントを、コンテナの指定されたZ軸順のインデックスに移動します。voidJScrollPane. setCorner(String key, Component corner)スクロール・ペインのコーナーのいずれかに表示される子を追加します(スペースがある場合)。voidJApplet. setGlassPane(Component glassPane)非推奨。glassPaneプロパティを設定します。voidJDialog. setGlassPane(Component glassPane)glassPaneプロパティを設定します。voidJFrame. setGlassPane(Component glassPane)glassPaneプロパティを設定します。voidJInternalFrame. setGlassPane(Component glass)このJInternalFrameのglassPaneプロパティを設定します。voidJRootPane. setGlassPane(Component glass)指定したComponentがこのルート・ペインのガラス・ペインになるように設定します。voidJWindow. setGlassPane(Component glassPane)glassPaneプロパティを設定します。voidRootPaneContainer. setGlassPane(Component glassPane)glassPaneは常にrootPaneの最初の子で、rootPaneのレイアウト・マネージャによって、常にrootPaneと同じ大きさであることが保証されます。voidGroupLayout. setHonorsVisibility(Component component, Boolean honorsVisibility)サイズおよび配置の設定の際、コンポーネントの可視設定を考慮するかどうかを設定します。voidJPopupMenu. setInvoker(Component invoker)ポップアップ・メニューの呼出し側、すなわち、ポップアップ・メニュー項目が表示されるコンポーネントを設定します。voidJLabel. setLabelFor(Component c)このラベルが割り当てられているコンポーネントを設定します。voidJLayeredPane. setLayer(Component c, int layer)指定されたコンポーネントのレイヤー属性を設定し、レイヤー内でいちばん下のコンポーネントとします。voidJLayeredPane. setLayer(Component c, int layer, int position)指定されたコンポーネントのレイヤー属性と、レイヤー内でのコンポーネントの位置を指定します。voidJSplitPane. setLeftComponent(Component comp)コンポーネントをディバイダの左(上)に設定します。voidJComponent. setNextFocusableComponent(Component aComponent)非推奨。1.4で、FocusTraversalPolicyに置き換えられますvoidJLayeredPane. setPosition(Component c, int position)コンポーネントを現在のレイヤーのpositionに移動します。0がいちばん上、-1がいちばん下です。voidJSplitPane. setRightComponent(Component comp)ディバイダの右(または下)のコンポーネントを設定します。voidJScrollPane. setRowHeaderView(Component view)必要に応じて行ヘッダーのビュー・ポートを作成し、ビューを設定してから、行ヘッダーのビュー・ポートをスクロール・ペインに追加します。voidJMenuBar. setSelected(Component sel)現在選択されているコンポーネントを設定します。選択モデルを変更します。voidJPopupMenu. setSelected(Component sel)現在選択されるコンポーネントを設定します。結果として、選択モデルが変更されます。voidJTabbedPane. setSelectedComponent(Component c)タブ・ペインの選択コンポーネントを設定します。voidJTabbedPane. setTabComponentAt(int index, Component component)指定されたタブのタイトルをレンダリングするコンポーネントを設定します。voidJSplitPane. setTopComponent(Component comp)コンポーネントをディバイダの上または左に設定します。voidJViewport. setView(Component view)JViewportの1つの軽量な子(view)を設定します。nullも指定できます。voidJScrollPane. setViewportView(Component view)必要に応じてビュー・ポートを作成してから、ビューを設定します。voidJPopupMenu. show(Component invoker, int x, int y)呼出しコンポーネント内のx、y座標で指定された位置に、ポップアップ・メニューを表示します。static intJOptionPane. showConfirmDialog(Component parentComponent, Object message)オプション「はい」、「いいえ」、「取消」を含む、「オプションの選択」というタイトルのダイアログを表示します。static intJOptionPane. showConfirmDialog(Component parentComponent, Object message, String title, int optionType)選択肢の数がoptionTypeパラメータによって決定されるダイアログを表示します。static intJOptionPane. showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)選択肢の数がoptionTypeパラメータによって決定され、表示するアイコンがmessageTypeパラメータによって決定されるダイアログを表示します。static intJOptionPane. showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)選択肢の数がoptionTypeパラメータによって決定される、指定されたアイコンを持つダイアログを表示します。static ColorJColorChooser. showDialog(Component component, String title, Color initialColor)モーダルなカラー・チューザ・ダイアログを表示し、ダイアログが隠されるまでブロックします。static ColorJColorChooser. showDialog(Component component, String title, Color initialColor, boolean colorTransparencySelectionEnabled)モーダルなカラー・チューザ・ダイアログを表示し、ダイアログが隠されるまでブロックします。intJFileChooser. showDialog(Component parent, String approveButtonText)カスタム承認ボタンとともにカスタム・ファイル・チューザを表示します。static StringJOptionPane. showInputDialog(Component parentComponent, Object message)parentComponentを親として、ユーザーからの入力を要求するクエスチョン・メッセージ・ダイアログを表示します。static StringJOptionPane. showInputDialog(Component parentComponent, Object message, Object initialSelectionValue)parentComponentを親として、ユーザーからの入力を要求するクエスチョン・メッセージ・ダイアログを表示します。static StringJOptionPane. showInputDialog(Component parentComponent, Object message, String title, int messageType)parentComponentを親として、ユーザーからの入力を要求するダイアログを表示します。このダイアログのタイトルはtitleで、メッセージ型はmessageTypeです。static ObjectJOptionPane. showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)初期選択、指定可能な選択項目、およびそれ以外のすべてのオプションの指定が可能なブロッキング・ダイアログでユーザーに入力を求めます。static intJOptionPane. showInternalConfirmDialog(Component parentComponent, Object message)オプション「はい」、「いいえ」、および「取消」を含む、「オプションの選択」というタイトルの内部ダイアログ・パネルを表示します。static intJOptionPane. showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType)optionTypeパラメータで選択項目数が決まる内部ダイアログ・パネルを表示します。static intJOptionPane. showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)optionTypeパラメータで選択項目数が決まる内部ダイアログ・パネルを表示します。表示するアイコンはmessageTypeパラメータで決まります。static intJOptionPane. showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)指定されたアイコンを持つ内部ダイアログ・パネルを表示します。選択項目数はoptionTypeパラメータで決まります。static StringJOptionPane. showInternalInputDialog(Component parentComponent, Object message)parentComponentを親として、ユーザーに入力を求める内部クエスチョン・メッセージ・ダイアログを表示します。static StringJOptionPane. showInternalInputDialog(Component parentComponent, Object message, String title, int messageType)parentComponentを親として、ユーザーからの入力を要求する内部ダイアログを表示します。このダイアログのタイトルはtitleで、メッセージ型はmessageTypeです。static ObjectJOptionPane. showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)初期選択、指定可能な選択項目、およびそれ以外のすべてのオプションの指定が可能なブロッキング内部ダイアログでユーザーに入力を求めます。static voidJOptionPane. showInternalMessageDialog(Component parentComponent, Object message)内部確認ダイアログ・パネルを表示します。static voidJOptionPane. showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType)messageTypeパラメータで決まるデフォルト・アイコンを使用して、メッセージを表示するための内部ダイアログ・パネルを表示します。static voidJOptionPane. showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)すべてのパラメータを指定して、メッセージを表示するための内部ダイアログ・パネルを表示します。static intJOptionPane. showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)指定されたアイコンを持つ内部ダイアログ・パネルを表示します。初期選択はinitialValueパラメータ、選択項目数はoptionTypeパラメータで決まります。static voidJOptionPane. showMessageDialog(Component parentComponent, Object message)「Message」というタイトルの情報メッセージ・ダイアログを表示します。static voidJOptionPane. showMessageDialog(Component parentComponent, Object message, String title, int messageType)messageTypeパラメータによって決定されるデフォルト・アイコンを使用して、メッセージを表示するダイアログを表示します。static voidJOptionPane. showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)すべてのパラメータを指定して、メッセージを表示するためのダイアログを表示します。intJFileChooser. showOpenDialog(Component parent)「ファイルを開く」ファイル・チューザ・ダイアログを表示します。static intJOptionPane. showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)最初の選択がinitialValueパラメータによって決定され、選択肢の数がoptionTypeパラメータによって決定される、指定されたアイコンを持つダイアログを表示します。intJFileChooser. showSaveDialog(Component parent)「ファイルの保存」ファイル・チューザ・ダイアログを表示します。static voidSwingUtilities. updateComponentTreeUI(Component c)単純なLook & Feelの変更で、ツリー内の各ノードにupdateUI()処理を行うこと、つまり現在のLook & FeelでそのUIプロパティを初期化することを要求します。static SpringSpring. width(Component c)minimum、preferred、maximum、およびvalueの各プロパティが、それぞれ指定されたコンポーネントのminimumSize、preferredSize、maximumSize、およびsizeの各プロパティの幅で定義されているスプリングを返します。static WindowSwingUtilities. windowForComponent(Component c)cの最初のWindow祖先か、またはcがWindowの内部に含まれていない場合はnullを返します。Component型の型引数を持つjavax.swingのメソッド・パラメータ 修飾子と型 メソッド 説明 protected voidSortingFocusTraversalPolicy. setComparator(Comparator<? super Component> comparator)フォーカス・トラバーサル・サイクルでComponentsをソートするために使うComparatorを設定します。Component型のパラメータを持つjavax.swingのコンストラクタ コンストラクタ 説明 Constraints(Component c)コンポーネントcに適したスプリング(x、y、width、およびheight)を使用して、Constraintsオブジェクトを作成します。JScrollPane(Component view)指定されたコンポーネントのコンテンツを表示するJScrollPaneを作成します。コンポーネントのコンテンツがビューより大きい場合は、常に水平および垂直スクロール・バーの両方が表示されます。JScrollPane(Component view, int vsbPolicy, int hsbPolicy)ビューの位置を1組のスクロール・バーを使用して制御できるビュー・ポート内にビュー・コンポーネントを表示するJScrollPaneを作成します。JSplitPane(int newOrientation, boolean newContinuousLayout, Component newLeftComponent, Component newRightComponent)指定された方向、再描画スタイル、指定されたコンポーネントを使用して新しいJSplitPaneを作成します。JSplitPane(int newOrientation, Component newLeftComponent, Component newRightComponent)指定された方向と指定されたコンポーネントを使用して新しいJSplitPaneを作成します。Popup(Component owner, Component contents, int x, int y)Componentcontentsを含むComponentownerのPopupを作成します。ProgressMonitor(Component parentComponent, Object message, String note, int min, int max)進捗状況を示すグラフィック・オブジェクトを構築します。進捗状況は、通常、処理が完了に近づくにつれて矩形のバーを埋めていくことで示します。ProgressMonitorInputStream(Component parentComponent, Object message, InputStream in)入力ストリームの進捗を監視するオブジェクトを構築します。TransferSupport(Component component, Transferable transferable)指定されたコンポーネントのisDrop()falseとTransferableを使用してTransferSupportを作成します。Component型の型引数を持つjavax.swingのコンストラクタ・パラメータ コンストラクタ 説明 SortingFocusTraversalPolicy(Comparator<? super Component> comparator)指定されたComparatorでSortingFocusTraversalPolicyを構築します。 -
javax.swing.borderでのComponentの使用
Component型のパラメータを持つjavax.swing.borderのメソッド 修飾子と型 メソッド 説明 intAbstractBorder. getBaseline(Component c, int width, int height)ベースラインを返します。intTitledBorder. getBaseline(Component c, int width, int height)ベースラインを返します。Component.BaselineResizeBehaviorAbstractBorder. getBaselineResizeBehavior(Component c)サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。Component.BaselineResizeBehaviorTitledBorder. getBaselineResizeBehavior(Component c)サイズの変化に合わせてボーダーのベースラインがどのように変化するかを示す列挙を返します。InsetsAbstractBorder. getBorderInsets(Component c)このデフォルトの実装は、AbstractBorder.getBorderInsets(Component,Insets)メソッドによって初期化される新しいInsetsオブジェクトを返します。InsetsAbstractBorder. getBorderInsets(Component c, Insets insets)インセット・パラメータを、このBorderの現在のイン・セットで初期化し直します。InsetsBevelBorder. getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。InsetsBorder. getBorderInsets(Component c)ボーダーのイン・セットを返します。InsetsCompoundBorder. getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。InsetsEmptyBorder. getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。InsetsEtchedBorder. getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。InsetsLineBorder. getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。InsetsMatteBorder. getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。InsetsSoftBevelBorder. getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。InsetsStrokeBorder. getBorderInsets(Component c, Insets insets)insetsパラメータを、このボーダーの現在のイン・セットで初期化し直します。InsetsTitledBorder. getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。protected FontTitledBorder. getFont(Component c)タイトル付きボーダーのデフォルト・フォントを返します。ColorEtchedBorder. getHighlightColor(Component c)指定されたコンポーネントにレンダリングされたときの、エッチング・ボーダーのハイライト・カラーを返します。ColorBevelBorder. getHighlightInnerColor(Component c)指定されたコンポーネントにレンダリングされたときの斜影ボーダーの内側ハイライト・カラーを返します。ColorBevelBorder. getHighlightOuterColor(Component c)指定されたコンポーネントにレンダリングされたときの斜影ボーダーの外側ハイライト・カラーを返します。RectangleAbstractBorder. getInteriorRectangle(Component c, int x, int y, int width, int height)静的メソッドを呼び出す簡易メソッドです。static RectangleAbstractBorder. getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)ボーダーのイン・セットから引数の値を減算して矩形を返します。DimensionTitledBorder. getMinimumSize(Component c)ボーダーとタイトルを完全に表示するためにボーダーに必要な最小サイズを返します。ColorEtchedBorder. getShadowColor(Component c)指定されたコンポーネントにレンダリングされたときのエッチング・ボーダーのシャドウ・カラーを返します。ColorBevelBorder. getShadowInnerColor(Component c)指定されたコンポーネント・レンダリングされたときの斜影ボーダーの内側シャドウ・カラーを返します。ColorBevelBorder. getShadowOuterColor(Component c)指定されたコンポーネント・レンダリングされたときの斜影ボーダーの外側シャドウ・カラーを返します。voidAbstractBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)このデフォルト実装では、ペイントを行いません。voidBevelBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)指定されたコンポーネントのボーダーを、指定された位置およびサイズでペイントします。voidBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)指定されたコンポーネントのボーダーを、指定された位置およびサイズでペイントします。voidCompoundBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)複合ボーダーをペイントします。外側ボーダーを指定された位置とサイズでペイントしてから、内側ボーダーを指定された位置とサイズ(外側ボーダーのイン・セットでオフセット)でペイントします。voidEmptyBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)デフォルトでは、描画を行いません。voidEtchedBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)指定されたコンポーネントのボーダーを、指定された位置およびサイズでペイントします。voidLineBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)指定されたコンポーネントのボーダーを、指定された位置およびサイズでペイントします。voidMatteBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)飾り縁ボーダーをペイントします。voidSoftBevelBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)指定されたコンポーネントのボーダーを、指定された位置およびサイズでペイントします。voidStrokeBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)指定されたコンポーネントのボーダーを、指定された位置およびサイズでペイントします。voidTitledBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)指定されたコンポーネントのボーダーを、指定された位置およびサイズでペイントします。protected voidBevelBorder. paintLoweredBevel(Component c, Graphics g, int x, int y, int width, int height)指定された位置およびサイズで、指定されたコンポーネントの下げべベルをペイントします。protected voidBevelBorder. paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height)指定された位置とサイズで、指定されたコンポーネントの上げベベルをペイントします。 -
javax.swing.colorchooserでのComponentの使用
javax.swing.colorchooserでのComponentのサブクラス 修飾子と型 クラス 説明 classAbstractColorChooserPanelカラー・チューザの抽象スーパー・クラスです。 -
javax.swing.eventでのComponentの使用
Component型のパラメータを持つjavax.swing.eventのコンストラクタ コンストラクタ 説明 MenuDragMouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m)MenuDragMouseEventオブジェクトを構築します。MenuDragMouseEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m)MenuDragMouseEventオブジェクトを構築します。MenuKeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar, MenuElement[] p, MenuSelectionManager m)MenuKeyEventオブジェクトを構築します。 -
javax.swing.plafでのComponentの使用
Component型の型パラメータを持つjavax.swing.plafのクラス 修飾子と型 クラス 説明 classLayerUI<V extends Component>すべてのJLayerのUI委譲の基底クラス。 -
javax.swing.plaf.basicでのComponentの使用
javax.swing.plaf.basicでのComponentのサブクラス 修飾子と型 クラス 説明 classBasicArrowButton基本方向のいずれかにスケーリングされる矢印を描画するJButtonオブジェクトです。classBasicComboBoxRendererComboBoxレンダラですstatic classBasicComboBoxRenderer.UIResourceUIResourceを実装するBasicComboBoxRendererのサブクラスです。classBasicComboPopupこれは、ComboPopupインタフェースの基本的な実装です。classBasicInternalFrameTitlePane基本のタイトル・バーを管理するクラスclassBasicInternalFrameTitlePane.SystemMenuBarこのクラスは、「protected」内部クラスとして扱うようにしてください。classBasicSplitPaneDividerBasicSplitPaneUIで使われるディバイダです。protected classBasicToolBarUI.DragWindowJToolBarをドラッグしている間に表示されるウィンドウ。Componentとして宣言されているjavax.swing.plaf.basicのフィールド 修飾子と型 フィールド 説明 protected Component[]BasicSplitPaneUI.BasicHorizontalLayoutManager. componentsコンポーネント。protected ComponentBasicTreeUI.MouseInputHandler. destinationすべてのイベントを受け取る宛先です。protected ComponentBasicTreeUI. editingComponentこれは編集時に、実際の編集を行うComponentになります。protected ComponentBasicComboBoxUI. editor@{code ComboBoxEditor} が編集に使用するコンポーネント。protected ComponentBasicSplitPaneDivider. hiddenDivider非連続レイアウト・モードに使われるディバイダです。protected ComponentBasicOptionPaneUI. initialFocusComponentselectInitialValueでメッセージが送られたときに、フォーカスを受け取るコンポーネントです。protected ComponentBasicSplitPaneUI. nonContinuousLayoutDivider非連続レイアウトが使われているときのディバイダのシャドウのインスタンスです。protected ComponentBasicTreeUI.MouseInputHandler. sourceイベントのソースです。ComponentBasicMenuUI.ChangeHandler. wasFocusedフォーカスされたコンポーネント。Componentを返すjavax.swing.plaf.basicのメソッド 修飾子と型 メソッド 説明 protected ComponentBasicSplitPaneUI. createDefaultNonContinuousLayoutDivider()デフォルトの非連続レイアウトのディバイダを返します。これは、バックグラウンドをダーク・グレーで塗りつぶすCanvasのインスタンスです。protected ComponentBasicSpinnerUI. createNextButton()増分ボタン、つまりスピナー値をspinner.getNextValueによって返されたオブジェクトで置き換えるコンポーネントを作成します。protected ComponentBasicSpinnerUI. createPreviousButton()減分ボタン、つまりスピナー値をspinner.getPreviousValueによって返されたオブジェクトで置き換えるコンポーネントを作成します。protected ComponentBasicSliderUI. getHighestValueLabel()ラベル・テーブル内で最小スライダ値に対応するラベルを返します。protected ComponentBasicSliderUI. getLowestValueLabel()ラベル・テーブル内で最大スライダ値に対応するラベルを返します。ComponentBasicSplitPaneUI. getNonContinuousLayoutDivider()JSplitPaneが連続してレイアウトされていないように構成されている場合に使用する分割線を返します。protected ComponentBasicTabbedPaneUI. getVisibleComponent()可視コンポーネントを返します。Component型のパラメータを持つjavax.swing.plaf.basicのメソッド 修飾子と型 メソッド 説明 voidBasicSplitPaneUI.BasicHorizontalLayoutManager. addLayoutComponent(Component comp, Object constraints)指定された制約オブジェクトを使って、指定されたコンポーネントをレイアウトに追加します。voidBasicSplitPaneUI.BasicHorizontalLayoutManager. addLayoutComponent(String place, Component component)コンポーネントをplaceに追加します。booleanBasicToolBarUI. canDock(Component c, Point p)JToolBarが所定の位置にドッキングできる場合は、trueを返します。protected voidBasicTreeUI. drawCentered(Component c, Graphics graphics, Icon icon, int x, int y)(x,y)を中心とするiconを描画します。protected intBasicSplitPaneUI.BasicHorizontalLayoutManager. getPreferredSizeOfComponent(Component c)渡されたComponent推奨サイズの幅を返します。protected DimensionBasicComboBoxUI. getSizeForComponent(Component comp)セル・レンダラとして使用された場合のコンポーネントのサイズを返します。protected intBasicSplitPaneUI.BasicHorizontalLayoutManager. getSizeOfComponent(Component c)渡されたコンポーネントの幅を返します。protected voidBasicSpinnerUI. installNextButtonListeners(Component c)ユーザーのジェスチャに応じてJSpinnerを更新するために必要なリスナーを、「次」ボタンcにインストールします。protected voidBasicSpinnerUI. installPreviousButtonListeners(Component c)ユーザーのジェスチャに応じてJSpinnerを更新するために必要なリスナーを、「戻る」ボタンcにインストールします。protected voidBasicSliderUI. paintHorizontalLabel(Graphics g, int value, Component label)ラベル・テーブルの各ラベルに対して呼び出されます。protected voidBasicSliderUI. paintVerticalLabel(Graphics g, int value, Component label)ラベル・テーブルの各ラベルに対して呼び出されます。voidBasicSplitPaneUI.BasicHorizontalLayoutManager. removeLayoutComponent(Component component)指定されたコンポーネントを削除します。protected voidBasicToolBarUI. setBorderToNonRollover(Component c)BasicToolBarUI.createNonRolloverBorder()メソッドが作成した非ロールオーバー・ボーダーを持つように、コンポーネントのボーダーを設定します。protected voidBasicToolBarUI. setBorderToNormal(Component c)コンポーネントのボーダーが通常のボーダーを持つように設定します。protected voidBasicToolBarUI. setBorderToRollover(Component c)BasicToolBarUI.createRolloverBorder()メソッドが作成したロールオーバー・ボーダーを持つように、コンポーネントのボーダーを設定します。protected voidBasicSplitPaneUI.BasicHorizontalLayoutManager. setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize)コンポーネントcの幅をsizeに設定し、xロケーションをlocationに、yをinsets.topに、高さをcontainerSize.heightの上下のインセットよりも小さく設定します。protected voidBasicSplitPaneUI. setNonContinuousLayoutDivider(Component newDivider)JSplitPaneが連続してレイアウトしないように構成されている場合に使用する仕切りを構成します。protected voidBasicSplitPaneUI. setNonContinuousLayoutDivider(Component newDivider, boolean rememberSizes)使用するディバイダを設定します。protected voidBasicTabbedPaneUI. setVisibleComponent(Component component)可視コンポーネントを設定します。Component型のパラメータを持つjavax.swing.plaf.basicのコンストラクタ コンストラクタ 説明 MouseInputHandler(Component source, Component destination, MouseEvent event)MouseInputHandlerの新しいインスタンスを構築します。 -
javax.swing.plaf.metalでのComponentの使用
javax.swing.plaf.metalでのComponentのサブクラス 修飾子と型 クラス 説明 classMetalComboBoxButtonMetalComboBoxUIを補助するJButtonサブクラスclassMetalComboBoxUI.MetalComboPopup非推奨。Java 2プラットフォームv1.4以降。protected classMetalFileChooserUI.FileRenderer非推奨。JDKバージョン9以降。classMetalFileChooserUI.FilterComboBoxRenderer各種のサイズおよびスタイルをレンダリングします。classMetalInternalFrameTitlePaneJLF仕様のタイトル・バーを管理するクラスです。classMetalScrollButtonMetalスクロール・バー矢印用のJButtonオブジェクトです。Component型のパラメータを持つjavax.swing.plaf.metalのメソッド 修飾子と型 メソッド 説明 protected voidMetalCheckBoxIcon. drawCheck(Component c, Graphics g, int x, int y)MetalCheckBoxIconをペイントします。voidMetalComboBoxIcon. paintIcon(Component c, Graphics g, int x, int y)水平線をペイントします。voidMetalIconFactory.TreeControlIcon. paintMe(Component c, Graphics g, int x, int y)TreeControlIconをペイントします。voidMetalLookAndFeel. provideErrorFeedback(Component component)ユーザーが、フォーカスを持つ編集不可能なJTextFieldへのペーストなどの無効な操作を行おうとしたときに呼び出されます。 -
javax.swing.plaf.synthでのComponentの使用
Component型のパラメータを持つjavax.swing.plaf.synthのメソッド 修飾子と型 メソッド 説明 protected voidSynthToolBarUI. setBorderToNonRollover(Component c)JToolBarクラスのrolloverプロパティがSynth Look & Feelで使用されないため、この実装は何も行いません。protected voidSynthToolBarUI. setBorderToNormal(Component c)JToolBarクラスのrolloverプロパティがSynth Look & Feelで使用されないため、この実装は何も行いません。protected voidSynthToolBarUI. setBorderToRollover(Component c)JToolBarクラスのrolloverプロパティがSynth Look & Feelで使用されないため、この実装は何も行いません。static voidSynthLookAndFeel. updateStyles(Component c)cに関連付けられたスタイルとそのすべての子を更新します。 -
javax.swing.tableでのComponentの使用
javax.swing.tableでのComponentのサブクラス 修飾子と型 クラス 説明 classDefaultTableCellRendererJTable内の個々のセルをレンダリング(表示)するための標準クラス。static classDefaultTableCellRenderer.UIResourceUIResourceを実装するDefaultTableCellRendererのサブクラス。classJTableHeaderこれは、JTableのヘッダーを管理するオブジェクトです。Componentを返すjavax.swing.tableのメソッド 修飾子と型 メソッド 説明 ComponentTableCellEditor. getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)エディタの初期valueを設定します。ComponentDefaultTableCellRenderer. getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)デフォルトのテーブル・セル・レンダラを返します。ComponentTableCellRenderer. getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)セルを描画するのに使用されるコンポーネントを返します。 -
javax.swing.textでのComponentの使用
javax.swing.textでのComponentのサブクラス 修飾子と型 クラス 説明 classJTextComponentJTextComponentは、Swingテキスト・コンポーネントのための基底クラスです。Componentを返すjavax.swing.textのメソッド 修飾子と型 メソッド 説明 protected ComponentComponentView. createComponent()このビューに関連付けられたコンポーネントを作成します。ComponentComponentView. getComponent()ビューに関連付けられたコンポーネントを取得します。static ComponentStyleConstants. getComponent(AttributeSet a)属性リストからコンポーネントの設定を返します。Component型のパラメータを持つjavax.swing.textのメソッド 修飾子と型 メソッド 説明 protected voidPlainView. damageLineRange(int line0, int line1, Shape a, Component host)指定された行範囲を再ペイントします。static voidStyleConstants. setComponent(MutableAttributeSet a, Component c)コンポーネント属性を設定します。 -
javax.swing.text.htmlでのComponentの使用
Componentを返すjavax.swing.text.htmlのメソッド 修飾子と型 メソッド 説明 protected ComponentFormView. createComponent()コンポーネントを作成します。protected ComponentObjectView. createComponent()コンポーネントを作成します。 -
javax.swing.treeでのComponentの使用
javax.swing.treeでのComponentのサブクラス 修飾子と型 クラス 説明 classDefaultTreeCellEditor.DefaultTextFieldエディタが提供されない場合に使用されるTextField。classDefaultTreeCellEditor.EditorContainereditingComponentを配置するコンテナ。classDefaultTreeCellRendererツリーのエントリを表示します。Componentとして宣言されているjavax.swing.treeのフィールド 修飾子と型 フィールド 説明 protected ComponentDefaultTreeCellEditor. editingComponenteditingContainerから取得され、編集で使用されるコンポーネントです。Componentを返すjavax.swing.treeのメソッド 修飾子と型 メソッド 説明 ComponentDefaultTreeCellEditor. getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)エディタを設定します。ComponentTreeCellEditor. getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)エディタの初期valueを設定します。ComponentDefaultTreeCellRenderer. getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)コンポーネントに渡される内容に基づいてレンダラを設定します。ComponentTreeCellRenderer. getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)現在のツリー・セルの値をvalueに設定します。
-