クラスjava.awt.Component
の使用
Componentを使用するパッケージ
パッケージ
説明
Java Accessibility Utilitiesを構成するインタフェースとクラスの集合を提供します。
アプレットの作成、およびアプレットとアプレット・コンテキストとの通信に使用するクラスの作成に必要なクラスを提供します。
ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。
ドラッグ&ドロップ操作は、多くのグラフィカル・ユーザー・インタフェース・システムで見られる直接的な操作ジェスチャで、GUIの表現要素に論理的に関連付けられた2つのエンティティ間で情報を変換するメカニズムを提供します。
AWTコンポーネントによってトリガーされるさまざまな種類のイベントを処理するインタフェースとクラスを提供します。
インプット・メソッド・フレームワークのためのクラスおよびインタフェースを提供します。
beansの開発に関連するクラスが含まれます -- JavaBeansアーキテクチャに基づくコンポーネント。
Beanコンテキストに関連するクラスおよびインタフェースを提供します。
すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。
Swingコンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。
JColorChooserコンポーネントによって使用されるクラスとインタフェースが含まれています。Swingコンポーネントによってトリガーされるイベントを提供します。
1つのインタフェースおよび多くのabstractクラスを提供しており、Swingはプラグイン可能なLook & Feel機能を提供するためにこれらを利用します。
基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。
デフォルトのLook & FeelであるJava Look & Feel (以前のコード名はMetal)に従って構築されたユーザー・インタフェース・オブジェクトを提供します。
Synthは、すべてのペイントが委譲されるスキン設定可能なLook & Feelです。
javax.swing.JTableを処理するためのクラスとインタフェースを提供します。編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。
HTMLテキスト・エディタを作成するためのクラス
HTMLEditorKitとサポート・クラスを提供します。javax.swing.JTreeを処理するためのクラスとインタフェースを提供します。- 
com.sun.java.accessibility.utilでのComponentの使用Componentとして宣言されたcom.sun.java.accessibility.utilのフィールド修飾子と型フィールド説明protected static ComponentAWTEventMonitor.componentWithFocus削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。このフィールドは未使用です。フォーカスのあるコンポーネントを取得するには、getComponentWithFocusメソッドを使用します。修飾子と型メソッド説明static ComponentAWTEventMonitor.getComponentWithFocus()現在、キーボード・フォーカスがあるコンポーネントを返します。
- 
java.appletでのComponentの使用java.appletでのComponentのサブクラス
- 
java.awtでのComponentの使用修飾子と型クラス説明classこのクラスはラベル付きボタンを生成します。classCanvasコンポーネントは、アプリケーションが描画したり、アプリケーションがユーザーからの入力イベントをトラップしたりすることのできる画面の空白の矩形領域を表します。classチェックボックスは、「オン」(true)または「オフ」(false)のどちらかの状態になることができるグラフィカル・コンポーネントです。classChoiceクラスは、選択肢のポップアップ・メニューを提供します。classジェネリックAbstract Window Toolkit (AWT)コンテナ・オブジェクトは、ほかのAWTコンポーネントを含むことができるコンポーネントです。classDialogは、通常はユーザーからの入力を受け付けるために使用される、タイトルおよびボーダーを持つトップ・レベルのウィンドウです。classFileDialogクラスは、ユーザーがファイルを選択できるダイアログ・ウィンドウを表示します。classFrameは、タイトルとボーダーを持つトップ・レベルのウィンドウです。classLabelオブジェクトは、コンテナ内にテキストを配置するためのコンポーネントです。classListコンポーネントは、ユーザーにテキスト項目のスクロール・リストを提供します。classPanelは、もっとも単純なコンテナ・クラスです。classScrollbarクラスは、なじみのあるユーザー・インタフェース・オブジェクトであるスクロール・バーを実現します。class1つの子コンポーネントに対して、自動水平または垂直スクロールあるいはその両方を実装するコンテナ・クラスです。classTextAreaオブジェクトは、テキストを表示する複数行領域です。classTextComponentクラスは、一部のテキストの編集を可能にするすべてのコンポーネントのスーパー・クラスです。classTextFieldオブジェクトは、1行のテキストの編集を可能にするテキスト・コンポーネントです。classWindowオブジェクトは、ボーダーやメニュー・バーのないトップ・レベルのウィンドウです。修飾子と型フィールド説明protected Hashtable<Component,GridBagConstraints>GridBagLayout.comptableこのハッシュ表は、コンポーネントとコンポーネントのグリッド・バッグ制約との関連性を維持します。修飾子と型メソッド説明指定されたコンポーネントをこのコンテナの最後に追加します。指定されたコンポーネントを、このコンテナの指定された位置に追加します。指定されたコンポーネントをこのコンテナに追加します。Container.findComponentAt(int x, int y)指定された位置を格納する可視の子コンポーネントを探します。Container.findComponentAt(Point p)指定された点を格納する可視の子コンポーネントを探します。Container.getComponent(int n)コンテナ内のn番目のコンポーネントを取得します。ContainerOrderFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。abstract ComponentFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。Component.getComponentAt(int x, int y)このコンポーネントまたはその直接のサブコンポーネントのいずれかに(x, y)位置が含まれているかどうかを判定し、該当する場合は含んでいるコンポーネントを返します。Component.getComponentAt(Point p)指定された点を含むコンポーネントまたはサブコンポーネントを返します。Container.getComponentAt(int x, int y)x、y座標を含むコンポーネントを探します。Container.getComponentAt(Point p)指定された点を含むコンポーネントを取得します。ContainerOrderFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。abstract ComponentFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。Container.getComponents()コンテナ内のすべてのコンポーネントを取得します。ContainerOrderFocusTraversalPolicy.getDefaultComponent(Container aContainer)フォーカスするデフォルトのComponentを返します。abstract ComponentFocusTraversalPolicy.getDefaultComponent(Container aContainer)フォーカスするデフォルトのComponentを返します。ContainerOrderFocusTraversalPolicy.getFirstComponent(Container aContainer)トラバーサル・サイクルの最初のComponentを返します。abstract ComponentFocusTraversalPolicy.getFirstComponent(Container aContainer)トラバーサル・サイクルの最初のComponentを返します。KeyboardFocusManager.getFocusOwner()フォーカスの所有者が呼出し側と同じコンテキストにある場合、フォーカスの所有者を返します。Window.getFocusOwner()このWindowがフォーカスされている場合は、このWindowの子Componentを返します。そうでない場合はnullを返します。protected ComponentKeyboardFocusManager.getGlobalFocusOwner()呼出し側スレッドがフォーカスの所有者と異なるコンテキストにある場合でも、フォーカスの所有者を返します。protected ComponentKeyboardFocusManager.getGlobalPermanentFocusOwner()パーマネント・フォーカスの所有者が呼出し側スレッドと異なるコンテキストにある場合でも、パーマネント・フォーカス所有者を返します。FocusTraversalPolicy.getInitialComponent(Window window)ウィンドウがはじめて表示されたときにフォーカスを受信するべきComponentを返します。ContainerOrderFocusTraversalPolicy.getLastComponent(Container aContainer)トラバーサル・サイクルの最後のComponentを返します。abstract ComponentFocusTraversalPolicy.getLastComponent(Container aContainer)トラバーサル・サイクルの最後のComponentを返します。BorderLayout.getLayoutComponent(Container target, Object constraints)ターゲットContainerのコンポーネント方向に基づいて、指定された制約の場所に対応するコンポーネントを返します。BorderLayout.getLayoutComponent(Object constraints)指定された制約で追加されたコンポーネントを取得します。Window.getMostRecentFocusOwner()このWindowがフォーカスされるときに、フォーカスを受け取るこのWindowの子Componentを返します。KeyboardFocusManager.getPermanentFocusOwner()パーマネント・フォーカスの所有者が呼出し側スレッドと同じコンテキストにある場合、パーマネント・フォーカスの所有者を返します。Component.locate(int x, int y)非推奨。JDK Version 1.1以降は、getComponentAt(int, int)に置き換えられています。Container.locate(int x, int y)非推奨。JDK Version 1.1以降は、getComponentAt(int, int)に置き換えられています。修飾子と型メソッド説明protected booleanComponentが新しいフォーカス所有者として適切かどうかを判定します。protected booleanComponentが新しいフォーカス所有者として適切かどうかを判定します。指定されたコンポーネントをこのコンテナの最後に追加します。指定されたコンポーネントを、このコンテナの指定された位置に追加します。void指定されたコンポーネントをこのコンテナの末尾に追加します。void指定されたコンポーネントを、指定されたインデックスと指定された制約で、コンテナへ追加します。指定されたコンポーネントをこのコンテナに追加します。protected void指定されたコンポーネントを、指定されたインデックスで、コンテナへ追加します。protected void指定されたコンポーネントを、このスクロール・ペイン・コンテナに追加します。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をフォーカスします。ContainerOrderFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。abstract ComponentFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。ContainerOrderFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。abstract ComponentFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。intContainer.getComponentZOrder(Component comp)コンテナ内のコンポーネントのZ軸順インデックスを返します。BorderLayout.getConstraints(Component comp)指定されたコンポーネントの制約を取得します。GridBagLayout.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を再ディスパッチします。voidこのコンテナから、指定されたコンポーネントを削除します。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)次のシナリオに応じて、指定されたコンポーネントを基準にしたウィンドウの位置を設定します。void元のコンポーネントからの相対位置x, yにポップアップ・メニューを表示します。voidDefaultKeyboardFocusManager.upFocusCycle(Component aComponent)フォーカスを1つ上のフォーカス・トラバーサル・サイクルに移動します。abstract voidKeyboardFocusManager.upFocusCycle(Component aComponent)フォーカスを1つ上のフォーカス・トラバーサル・サイクルに移動します。
- 
java.awt.dndでのComponentの使用Componentとして宣言されているjava.awt.dndのフィールド修飾子と型フィールド説明protected ComponentDragGestureRecognizer.componentこのDragGestureRecognizerに関連付けられているComponent。Componentを返すjava.awt.dndのメソッド修飾子と型メソッド説明DragGestureEvent.getComponent()このDragGestureEventに関連付けられたComponentを返します。DragGestureRecognizer.getComponent()このメソッドは、DragGestureRecognizerによってドラッグ開始ジェスチャを「監視」されるComponentを返します。DragSourceContext.getComponent()このDragSourceContextに関連付けられたComponentを返します。DropTarget.getComponent()このDropTargetに関連付けられているComponentを取得します。DropTargetContext.getComponent()このメソッドは、このDropTargetContextに関連付けられたComponentを返します。Component型のパラメータを持つjava.awt.dndのメソッド修飾子と型メソッド説明DragSource.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のコンストラクタ修飾子コンストラクタ説明protectedDragGestureRecognizer(DragSource ds, Component c)このドラッグ&ドロップ操作で使用されるDragSource、およびこのDragGestureRecognizerがドラッグ開始ジェスチャを「監視」すべきComponentを使用して、新しいDragGestureRecognizerを構築します。protectedDragGestureRecognizer(DragSource ds, Component c, int sa)このドラッグ&ドロップ操作で使用されるDragSource、このDragGestureRecognizerがドラッグ開始ジェスチャを「監視」すべきComponent、およびこのドラッグ&ドロップ操作でサポートされるアクションを使用して、新しいDragGestureRecognizerを構築します。protectedDragGestureRecognizer(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を作成します。protectedDropTargetAutoScroller(Component c, Point p)DropTargetAutoScrollerを構築しますprotectedComponentcのDragSource、および監視するComponentを使用して、新しいMouseDragGestureRecognizerを構築します。protectedMouseDragGestureRecognizer(DragSource ds, Component c, int act)ComponentcのDragSource、監視するComponent、およびこのドラッグ操作で許可されるアクションを使用して、新しいMouseDragGestureRecognizerを構築します。protectedMouseDragGestureRecognizer(DragSource ds, Component c, int act, DragGestureListener dgl)ComponentcのDragSource、監視するComponent、このドラッグ操作で許可されるアクション、およびドラッグ・ジェスチャが検出されたときに通知するDragGestureListenerを使用して、新しいMouseDragGestureRecognizerを構築します。
- 
java.awt.eventでのComponentの使用Componentを返すjava.awt.eventのメソッド修飾子と型メソッド説明HierarchyEvent.getChanged()変更された階層の最上位Componentを返します。ContainerEvent.getChild()イベントによって影響を受けたコンポーネントを返します。ComponentEvent.getComponent()イベントの発生元を返します。HierarchyEvent.getComponent()イベントの発生元を返します。FocusEvent.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を構築します。非推奨。JDK 1.1以降。代わりにKeyEvent(Component, int, long, int, int, char)を使用してください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のメソッド修飾子と型メソッド説明PropertyEditor.getCustomEditor()PropertyEditorは、プロパティ値を編集する完全なカスタム・コンポーネントを提供することができます。PropertyEditorSupport.getCustomEditor()PropertyEditorは、プロパティ値を編集する完全なカスタム・コンポーネントを提供することができます。
- 
java.beans.beancontextでのComponentの使用Componentを返すjava.beans.beancontextのメソッド修飾子と型メソッド説明BeanContextChildComponentProxy.getComponent()このBeanContextChildに関連付けられているjava.awt.Componentを取得します。
- 
javax.swingでのComponentの使用Component型の型パラメータを持つjavax.swingのクラス修飾子と型クラス説明classJLayerは、さまざまな高度なペイント効果を実装したり、そのボーダー内で生成されるすべてのAWTEventの通知を受信したりするために使用できる、Swingコンポーネントのための汎用のデコレータです。javax.swingでのComponentのサブクラス修飾子と型クラス説明classボタンおよびメニュー項目の共通動作を定義します。classBoxLayoutオブジェクトをレイアウト・マネージャとして使う軽量なコンテナです。static classレイアウトに含まれるがビューを持たない軽量コンポーネントの実装です。classこのクラスは、セル・レンダラとそれを使うコンポーネントの間に挿入されます。classリスト内の項目をレンダリングします。static classUIResourceを実装するDefaultListCellRendererのサブクラスです。class非推奨。アプレットAPIは非推奨であり、代替はありません。class「プッシュ」ボタンの実装です。classチェックボックス(選択または選択解除が可能で、その状態をユーザーに表示する項目)の実装です。class選択または選択解除できるメニュー項目です。classJColorChooserは、ユーザーが色を操作したり、選択したりできるように設計されたコントロールのペインを提供します。classJComboBox<E>ボタン、または編集可能フィールドとドロップ・ダウン・リストを組み合わせたコンポーネントです。classトップ・レベルのコンテナを除くすべてのSwingコンポーネントの基底クラスです。classマルチドキュメント・インタフェースまたは仮想デスクトップを生成するコンテナです。classダイアログ・ウィンドウを作成するためのメイン・クラスです。classさまざまな種類のコンテンツを編集するためのテキスト・コンポーネントです。classJFileChooserは、ユーザーがファイルを選択するための単純なメカニズムを提供します。classJFormattedTextFieldはJTextFieldを拡張して、任意の値をフォーマットしたり、ユーザーがテキストを編集したあとに特定のオブジェクトを取得したりするためのサポートを追加します。classJFC/Swingコンポーネント・アーキテクチャのサポートを追加するjava.awt.Frameの拡張バージョン。classネイティブなフレームに、ドラッグ、クローズ、アイコン化、サイズ変更、タイトル表示、およびメニュー・バーのサポートなど、多くの機能を提供する軽量オブジェクトです。static classこのコンポーネントは、JInternalFrameのアイコン化されたバージョンを表します。class短いテキスト文字列やイメージの表示領域です。両方を一緒に表示することもできます。classJLayerは、さまざまな高度なペイント効果を実装したり、そのボーダー内で生成されるすべてのAWTEventの通知を受信したりするために使用できる、Swingコンポーネントのための汎用のデコレータです。classJLayeredPaneはJFC/Swingコンテナに深さを追加し、コンポーネントが必要に応じて互いにオーバーラップできるようにします。classJList<E>オブジェクトのリストを表示し、ユーザーが1つまたは複数のオブジェクトを選択できるようにするコンポーネントです。classメニュー(ユーザーがJMenuBarの項目を選択したときに表示される、JMenuItemを含むポップアップ・ウィンドウ)の実装です。classメニュー・バーの実装です。classメニューの項目の実装です。classJOptionPaneは、ユーザーに値の入力を求めたり、何らかの情報を通知したりするための標準のダイアログ・ボックスを容易にポップアップできるようにします。classJPanelは、ジェネリックな軽量コンテナです。classJPasswordFieldは、1行のテキストの編集を可能にする軽量コンポーネントです。何かが入力されたことはビューに示されますが、元の文字は表示されません。classポップアップ・メニュー(一連の選択肢をポップアップおよび表示する小さなウィンドウ)の実装です。static classポップアップ・メニュー固有のセパレータです。class一部のタスクの進捗状況を視覚的に表示するコンポーネントです。classラジオ・ボタン(選択または選択解除が可能で、その状態をユーザーに表示する項目)の実装です。classラジオ・ボタン・メニュー項目の実装です。classJFrame、JDialog、JWindow、JApplet、およびJInternalFrameによって内部的に使用される軽量コンテナ。classスクロール・バーの実装です。class軽量コンポーネントのスクロール可能なビューを提供します。protected classJScrollPaneはデフォルトで、このクラスのインスタンスであるスクロール・バーを作成します。classJSeparatorは、区切り線を実装するための汎用的なコンポーネントを提供します。もっとも一般的には、メニュー項目を論理的なグループに分割するための項目間の区切り線として使用されます。classユーザーが指定された区間内でノブをスライドすることによりグラフィカルに値を選択できるようにするコンポーネントです。classユーザーが、順序付けられたシーケンスから数またはオブジェクトを選択できるようにする単一行の入力フィールドです。static classモデルがSpinnerDateModelであるJSpinnerのエディタ。static classJFormattedTextFieldを使用してモデルの現在の値の読取り専用ビューを表示する、より特殊なエディタの単純な基底クラス。static classモデルがSpinnerListModelであるJSpinnerのエディタ。static classモデルがSpinnerNumberModelであるJSpinnerのエディタ。classJSplitPaneは、2つ(2つだけ)のComponentを分割するために使用されます。class指定されたタイトルやアイコンを持つタブをクリックすることにより、ユーザーがコンポーネントのグループを切り替えられるようにするコンポーネントです。classJTableは、セルの通常の2次元テーブルを表示および編集するために使用されます。classJTextAreaは、プレーン・テキストを表示する複数行の領域です。classJTextFieldは、1行のテキストの編集を可能にする軽量コンポーネントです。classグラフィックで表現される属性でマークアップできるテキスト・コンポーネントです。class2つの状態を持つボタンの実装です。classJToolBarは、一般的に使用されるActionまたはコントロールを表示するのに役立つコンポーネントを提供します。static classツールバー独自のセパレータです。classComponentの「ヒント」を表示するために使います。class階層データのセットをアウトラインとして表示するコントロール。classベースとなる情報を見るために使用する「ビュー・ポート(窓)」です。classJWindowは、ユーザーのデスクトップ上のどこにでも表示できるコンテナです。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のメソッド修飾子と型メソッド説明このメニューの最後にコンポーネントを追加します。指定されたコンポーネントを、このコンテナの指定された位置に追加します。component.getNameの呼出しの結果であるコンポーネントの名前がデフォルトで設定されたタブ・タイトルを持つcomponentを追加します。コンポーネントの名前がデフォルトで設定されたタブ・タイトルを持つcomponentを、指定されたタブ・インデックス位置に追加します。指定されたタブ・タイトルを持つcomponentを追加します。protected ComponentScrollPaneLayout.addSingletonComponent(Component oldC, Component newC)既存のコンポーネントを削除します。MenuSelectionManager.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()に置き換えられています。JSplitPane.getBottomComponent()ディバイダの下または右のコンポーネントを返します。DefaultCellEditor.getComponent()エディタ・コンポーネントへの参照を返します。JMenu.getComponent()このMenuElementをペイントするのに使われるjava.awt.Componentを返します。JMenuBar.getComponent()MenuElementとして実装されます。JMenuItem.getComponent()このオブジェクトをペイントするのに使われるjava.awt.Componentを返します。JPopupMenu.getComponent()このJPopupMenuコンポーネントを返します。MenuElement.getComponent()このメソッドは、受信要素をペイントするために使用されるjava.awt.Componentを返す必要があります。Renderer.getComponent()値をレンダリングするために使用されるコンポーネントを返します。TransferHandler.TransferSupport.getComponent()この転送のターゲット・コンポーネントを返します。DefaultFocusManager.getComponentAfter(Container aContainer, Component aComponent)後のコンポーネントを返します。LayoutFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。SortingFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。JTabbedPane.getComponentAt(int index)indexのコンポーネントを返します。JMenuBar.getComponentAtIndex(int i)非推奨。getComponent(int i)に置き換えられていますJPopupMenu.getComponentAtIndex(int i)非推奨。Container.getComponent(int)に置き換えられていますJToolBar.getComponentAtIndex(int i)指定されたインデックスの要素を返します。DefaultFocusManager.getComponentBefore(Container aContainer, Component aComponent)前のコンポーネントを返します。LayoutFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。SortingFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。JLayeredPane.getComponentsInLayer(int layer)指定されたレイヤーのコンポーネントの配列を返します。指定されたコーナーにあるコンポーネントを返します。指定されたコーナーにあるComponentを返します。protected ComponentJTable.AccessibleJTable.AccessibleJTableCell.getCurrentComponent()テーブル・セル・レンダラ・コンポーネントを取得します。static ComponentSwingUtilities.getDeepestComponentAt(Component parent, int x, int y)位置x、yを含むparentの、もっとも深い可視の子孫Componentを返します。SortingFocusTraversalPolicy.getDefaultComponent(Container aContainer)フォーカスするデフォルトのComponentを返します。ComboBoxEditor.getEditorComponent()このエディタのツリー階層に追加するコンポーネントを返します。JTable.getEditorComponent()編集セッションを処理しているコンポーネントを返します。DefaultFocusManager.getFirstComponent(Container aContainer)最初のコンポーネントを返します。LayoutFocusTraversalPolicy.getFirstComponent(Container aContainer)トラバーサル・サイクルの最初のComponentを返します。SortingFocusTraversalPolicy.getFirstComponent(Container aContainer)トラバーサル・サイクルの最初のComponentを返します。JInternalFrame.getFocusOwner()このJInternalFrameがアクティブである場合、フォーカスを持つ子を返します。JApplet.getGlassPane()非推奨。このアプレットのglassPaneオブジェクトを返します。JDialog.getGlassPane()このダイアログのglassPaneオブジェクトを返します。JFrame.getGlassPane()このフレームのglassPaneオブジェクトを返します。JInternalFrame.getGlassPane()この内部フレームのガラス・ペインを返します。JRootPane.getGlassPane()このJRootPaneの現在のガラス・ペインを返します。JWindow.getGlassPane()このウィンドウのglassPane Componentを返します。RootPaneContainer.getGlassPane()glassPaneを返します。InternalFrameFocusTraversalPolicy.getInitialComponent(JInternalFrame frame)JinternalFrameが最初に選択されたときにフォーカスを受け取るComponentを返します。JPopupMenu.getInvoker()このポップアップ・メニューの呼出し側であるコンポーネントを返します。JLabel.getLabelFor()このラベルが割り当てられているコンポーネントを返します。DefaultFocusManager.getLastComponent(Container aContainer)最後のコンポーネントを返します。LayoutFocusTraversalPolicy.getLastComponent(Container aContainer)トラバーサル・サイクルの最後のComponentを返します。SortingFocusTraversalPolicy.getLastComponent(Container aContainer)トラバーサル・サイクルの最後のComponentを返します。JSplitPane.getLeftComponent()ディバイダの左(上)にあるコンポーネントを返します。DefaultListCellRenderer.getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus)ListCellRenderer.getListCellRendererComponent(JList<? extends E> list, E value, int index, boolean isSelected, boolean cellHasFocus)指定された値を表示するように設定されたコンポーネントを返します。JMenu.getMenuComponent(int n)nの位置にあるコンポーネントを返します。JMenu.getMenuComponents()メニューのサブコンポーネントのComponentの配列を返します。JInternalFrame.getMostRecentFocusOwner()このJInternalFrameが選択されたときにフォーカスを受け取る、このJInternalFrameの子コンポーネントを返します。JComponent.getNextFocusableComponent()非推奨。1.4以降は、FocusTraversalPolicyに置き換えられています。JSplitPane.getRightComponent()ディバイダの右(または下)のコンポーネントを返します。static Component現在のコンポーネント・ツリーのルート・コンポーネントを返します。JTabbedPane.getSelectedComponent()このタブ・ペインで現在選択されているコンポーネントを返します。JTabbedPane.getTabComponentAt(int index)indexのタブ・コンポーネントを返します。DefaultCellEditor.getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)TableCellEditorインタフェースを実装します。JSplitPane.getTopComponent()ディバイダの上または左のコンポーネントを返します。DefaultCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)TreeCellEditorインタフェースを実装します。static ComponentSwingUtilities.getUnwrappedView(JViewport viewport)JLayerのインスタンスではない、JViewportの最初の子孫を返します。JViewport.getView()JViewportの1つの子またはnullを返します。JTable.prepareEditor(TableCellEditor editor, int row, int column)row、columnの位置にあるセルの値および選択状態をデータ・モデルに照会して、エディタを準備します。JTable.prepareRenderer(TableCellRenderer renderer, int row, int column)row、columnの位置にあるセルの値および選択状態をデータ・モデルに照会して、レンダラを準備します。Component型の引数を持つ型を返すjavax.swingのメソッド修飾子と型メソッド説明protected Comparator<? super Component>SortingFocusTraversalPolicy.getComparator()フォーカス・トラバーサル・サイクルでComponentsをソートするために使うComparatorを返します。JLayeredPane.getComponentToLayer()コンポーネントをレイヤーにマッピングするハッシュ・テーブルを返します。Component型のパラメータを持つjavax.swingのメソッド修飾子と型メソッド説明protected boolean指定されたComponentが新しいフォーカス所有者として適切かどうかを判定します。protected booleanComponentが新しいフォーカス所有者として適切かどうかを判定します。このメニューの最後にコンポーネントを追加します。指定されたコンポーネントを、このコンテナの指定された位置に追加します。component.getNameの呼出しの結果であるコンポーネントの名前がデフォルトで設定されたタブ・タイトルを持つcomponentを追加します。コンポーネントの名前がデフォルトで設定されたタブ・タイトルを持つcomponentを、指定されたタブ・インデックス位置に追加します。voidタブ・ペインにcomponentを追加します。void指定したタブのインデックスにcomponentを追加します。指定されたタブ・タイトルを持つcomponentを追加します。GroupLayout.Group.addComponent(Component component)ComponentをこのGroupに追加します。GroupLayout.Group.addComponent(Component component, int min, int pref, int max)ComponentをこのGroupに指定されたサイズで追加します。GroupLayout.ParallelGroup.addComponent(Component component)ComponentをこのGroupに追加します。GroupLayout.ParallelGroup.addComponent(Component component, int min, int pref, int max)ComponentをこのGroupに指定されたサイズで追加します。GroupLayout.ParallelGroup.addComponent(Component component, GroupLayout.Alignment alignment)ComponentをこのParallelGroupに指定された配置で追加します。GroupLayout.ParallelGroup.addComponent(Component component, GroupLayout.Alignment alignment, int min, int pref, int max)このComponentをParallelGroupに指定の配置とサイズで追加します。GroupLayout.SequentialGroup.addComponent(boolean useAsBaseline, Component component)ComponentをこのGroupに追加します。GroupLayout.SequentialGroup.addComponent(boolean useAsBaseline, Component component, int min, int pref, int max)ComponentをこのGroupに指定されたサイズで追加します。GroupLayout.SequentialGroup.addComponent(Component component)ComponentをこのGroupに追加します。GroupLayout.SequentialGroup.addComponent(Component component, int min, int pref, int max)ComponentをこのGroupに指定されたサイズで追加します。protected void指定されたコンポーネントをこのコンテナのインデックスで指定された位置に追加します。このメソッドの詳細については、Container.addImpl(Component, Object, int)を参照してください。protected void指定したコンポーネントがすでにこれの子である場合、処理は不要です。重なる順番はセル・レンダラ・コンポーネントでは問題にはなりません。CellRendererPaneはいずれの場合もペイントしません。protected void非推奨。指定された子Componentを追加します。protected void指定されたコンポーネントを、指定されたインデックスで、コンテナへ追加します。protected void指定された子Componentを追加します。protected void指定された子Componentを追加します。protected void指定された子Componentを追加します。protected voidこのメソッドはJLayerではサポートされていません。このメソッドは常にUnsupportedOperationExceptionをスローします。protected voidガラス・コンポーネントの位置を子0として適用するためにオーバーライドされます。protected voidこの分割ペインに指定したコンポーネントを追加します。protected voidJButtonが追加されると、初期状態では使用不可に設定されます。protected voidJViewportの1つの軽量な子を設定します。nullも指定できます。protected void指定された子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が親コンテナに追加されたことを示す通知。voidJRootPane.RootLayout.addLayoutComponent(Component comp, Object constraints)voidJRootPane.RootLayout.addLayoutComponent(String name, Component comp)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)既存のコンポーネントを削除します。voidtitleで表される(アイコンなし)componentを追加します。voidtitleまたはicon、あるいはその両方(どちらかはnullでもかまわない)で表されるcomponentを追加します。voidtitleまたはicon、あるいはその両方(どちらかはnullでもかまわない)で表されるcomponentおよびtipを追加します。booleanDefaultFocusManager.compareTabOrder(Component a, Component b)フォーカス・トラバーサル・サイクルの順序でコンポーネントを比較します。MenuSelectionManager.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を作成して返します。JOptionPane.createDialog(Component parentComponent, String title)parentComponentのフレーム内のparentComponentの中央にthisをラップしている新しいJDialogを作成して返します。JOptionPane.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の最初のオブジェクトを返します。DefaultFocusManager.getComponentAfter(Container aContainer, Component aComponent)後のコンポーネントを返します。LayoutFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。SortingFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent)aComponentのあとでフォーカスを受け取るComponentを返します。DefaultFocusManager.getComponentBefore(Container aContainer, Component aComponent)前のコンポーネントを返します。LayoutFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。SortingFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent)aComponentの前にフォーカスを受け取るComponentを返します。intJMenuBar.getComponentIndex(Component c)指定されたコンポーネントのインデックスを返します。intJPopupMenu.getComponentIndex(Component c)指定されたコンポーネントのインデックスを返します。intJToolBar.getComponentIndex(Component c)指定されたコンポーネントのインデックスを返します。SpringLayout.getConstraint(String edgeName, Component c)コンポーネントの指定されたエッジと親の上端または左端との間の距離を制御するスプリングを返します。SpringLayout.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のインデックスを返します。int指定されたComponentのレイヤー属性を返します。static JLayeredPaneJLayeredPane.getLayeredPaneAbove(Component c)指定されたコンポーネントを含む最初のJLayeredPaneを返す簡易メソッドです。static RectangleSwingUtilities.getLocalBounds(Component aComponent)コンポーネントaComponentの矩形(0,0,bounds.width,bounds.height)を返します。RepaintManager.getOffscreenBuffer(Component c, int proposedWidth, int proposedHeight)コンポーネントcとともにdoubleバッファとして使用されるオフスクリーン・バッファを返します。Componentcontentsを含むComponentownerのPopupを作成します。protected PopupPopupFactory.getPopup(Component owner, Component contents, int x, int y, boolean isHeavyWeightPopup)Componentcontentsを含むComponentownerのPopupを作成します。intJLayeredPane.getPosition(Component c)レイヤー内でのコンポーネントの相対位置を返します。static Component現在のコンポーネント・ツリーのルート・コンポーネントを返します。static JRootPaneSwingUtilities.getRootPane(Component c)cが下位JRootPane子孫の場合は、そのJRootPane祖先を返します。static ContainerSwingUtilities.getUnwrappedParent(Component component)JLayerのインスタンスではない、componentの最初の祖先を返します。RepaintManager.getVolatileOffscreenBuffer(Component c, int proposedWidth, int proposedHeight)指定されたコンポーネントcとともにdoubleバッファとして使用されるvolatileオフスクリーン・バッファを返します。static WindowSwingUtilities.getWindowAncestor(Component c)cの最初のWindow祖先か、またはcがWindowの内部に含まれていない場合はnullを返します。static Springminimum、preferred、maximum、およびvalueの各プロパティが、それぞれ指定されたコンポーネントのminimumSize、preferredSize、maximumSize、およびsizeの各プロパティの高さで定義されているスプリングを返します。intJTabbedPane.indexOfComponent(Component component)指定されたコンポーネントのタブのインデックスを返します。intJTabbedPane.indexOfTabComponent(Component tabComponent)指定されたタブ・コンポーネントのタブのインデックスを返します。void指定されたコンポーネントを、メニューの指定された位置に挿入します。voidJTextPane.insertComponent(Component c)現在選択されている内容の置換としてドキュメントにコンポーネントを挿入します。void指定された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を返します。void指定のコンポーネントを、適切なサイズ、最小サイズ、または最大サイズを考慮せず、同じサイズに設定し、指定の軸に沿って配置します。void指定のコンポーネントを、適切なサイズ、最小サイズ、または最大サイズを考慮せず、同じサイズに設定します。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で、コンポーネントをペイントします。void指定された位置にアイコンを描画します。voidアイコンをペイントします。voidLookAndFeel.provideErrorFeedback(Component component)ユーザーが、フォーカスを持つ編集不可能なJTextFieldへのペーストなどの無効な操作を行おうとしたときに呼び出されます。voidSpringLayout.putConstraint(String e1, Component c1, int pad, String e2, Component c2)コンポーネントc1のエッジe1をコンポーネントc2のエッジe2にリンクします。エッジ間の距離は固定です。voidコンポーネントc1のエッジe1をコンポーネントc2のエッジe2にリンクします。void非推奨。指定されたコンポーネントをコンテナから削除します。void指定されたコンポーネントをコンテナから削除します。void指定されたコンポーネントをコンテナから削除します。void指定されたコンポーネントをコンテナから削除します。voidこのメニューからコンポーネントcを削除します。void子コンポーネントcomponentをペインから削除します。voidJTabbedPaneから指定されたComponentを削除します。voidViewportの1つの軽量な子を削除します。void指定されたコンポーネントをコンテナから削除します。voidBoxLayout.removeLayoutComponent(Component comp)このクラスでは使用しません。voidGroupLayout.removeLayoutComponent(Component component)親コンテナからComponentが削除されたことを示す通知です。voidJRootPane.RootLayout.removeLayoutComponent(Component comp)voidJSpinner.DefaultEditor.removeLayoutComponent(Component child)このLayoutManagerメソッドは何も行いません。voidOverlayLayout.removeLayoutComponent(Component comp)指定されたコンポーネントをレイアウトから削除します。voidScrollPaneLayout.removeLayoutComponent(Component c)指定されたコンポーネントをレイアウトから削除します。voidSpringLayout.removeLayoutComponent(Component c)指定されたコンポーネントに関連付けれられた制約を削除します。voidViewportLayout.removeLayoutComponent(Component c)指定されたコンポーネントをレイアウトから削除します。void既存のコンポーネントを新しいコンポーネントで置き換えます。voidJSplitPane.setBottomComponent(Component comp)コンポーネントをディバイダの下または右に設定します。voidJScrollPane.setColumnHeaderView(Component view)必要に応じて列ヘッダーのビュー・ポートを作成し、ビューを設定してから、列ヘッダーのビュー・ポートをスクロール・ペインに追加します。voidJTabbedPane.setComponentAt(int index, Component component)indexのコンポーネントをcomponentに設定します。voidJDesktopPane.setComponentZOrder(Component comp, int index)指定されたコンポーネントを、コンテナの指定されたZ軸順のインデックスに移動します。voidスクロール・ペインのコーナーのいずれかに表示される子を追加します(スペースがある場合)。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)このラベルが割り当てられているコンポーネントを設定します。void指定されたコンポーネントのレイヤー属性を設定し、レイヤー内でいちばん下のコンポーネントとします。void指定されたコンポーネントのレイヤー属性と、レイヤー内でのコンポーネントの位置を指定します。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の1つの軽量な子(view)を設定します。nullも指定できます。voidJScrollPane.setViewportView(Component view)必要に応じてビュー・ポートを作成してから、ビューを設定します。void呼出しコンポーネント内の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 Springminimum、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を作成します。protectedComponentcontentsを含む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)ベースラインを返します。AbstractBorder.getBaselineResizeBehavior(Component c)サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。TitledBorder.getBaselineResizeBehavior(Component c)サイズの変化に合わせてボーダーのベースラインがどのように変化するかを示す列挙を返します。AbstractBorder.getBorderInsets(Component c)このデフォルトの実装は、AbstractBorder.getBorderInsets(Component,Insets)メソッドによって初期化される新しいInsetsオブジェクトを返します。AbstractBorder.getBorderInsets(Component c, Insets insets)インセット・パラメータを、このBorderの現在のイン・セットで初期化し直します。BevelBorder.getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。Border.getBorderInsets(Component c)ボーダーのイン・セットを返します。CompoundBorder.getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。EmptyBorder.getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。EtchedBorder.getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。LineBorder.getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。MatteBorder.getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。SoftBevelBorder.getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。StrokeBorder.getBorderInsets(Component c, Insets insets)insetsパラメータを、このボーダーの現在のイン・セットで初期化し直します。TitledBorder.getBorderInsets(Component c, Insets insets)insetsパラメータを、このBorderの現在のInsetsで初期化し直します。protected Fontタイトル付きボーダーのデフォルト・フォントを返します。EtchedBorder.getHighlightColor(Component c)指定されたコンポーネントにレンダリングされたときの、エッチング・ボーダーのハイライト・カラーを返します。BevelBorder.getHighlightInnerColor(Component c)指定されたコンポーネントにレンダリングされたときの斜影ボーダーの内側ハイライト・カラーを返します。BevelBorder.getHighlightOuterColor(Component c)指定されたコンポーネントにレンダリングされたときの斜影ボーダーの外側ハイライト・カラーを返します。AbstractBorder.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)ボーダーのイン・セットから引数の値を減算して矩形を返します。TitledBorder.getMinimumSize(Component c)ボーダーとタイトルを完全に表示するためにボーダーに必要な最小サイズを返します。EtchedBorder.getShadowColor(Component c)指定されたコンポーネントにレンダリングされたときのエッチング・ボーダーのシャドウ・カラーを返します。BevelBorder.getShadowInnerColor(Component c)指定されたコンポーネント・レンダリングされたときの斜影ボーダーの内側シャドウ・カラーを返します。BevelBorder.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.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のクラスComponent型のパラメータを持つjavax.swing.plafのメソッド修飾子と型メソッド説明BorderUIResource.getBorderInsets(Component c)voidBorderUIResource.paintBorder(Component c, Graphics g, int x, int y, int width, int height)void
- 
javax.swing.plaf.basicでのComponentの使用javax.swing.plaf.basicでのComponentのサブクラス修飾子と型クラス説明class基本方向のいずれかにスケーリングされる矢印を描画するJButtonオブジェクトです。classComboBoxレンダラstatic classUIResourceを実装するBasicComboBoxRendererのサブクラスです。classこれは、ComboPopupインタフェースの基本的な実装です。class基本のタイトル・バーを管理するクラスclassこのクラスは、「protected」内部クラスとして扱うようにしてください。classBasicSplitPaneUIで使われるディバイダです。protected classJToolBarをドラッグしている間に表示されるウィンドウ。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イベントのソースです。BasicMenuUI.ChangeHandler.wasFocusedフォーカスされたコンポーネント。Componentを返すjavax.swing.plaf.basicのメソッド修飾子と型メソッド説明protected ComponentBasicSplitPaneUI.createDefaultNonContinuousLayoutDivider()デフォルトの非連続レイアウトのディバイダを返します。これは、バックグラウンドをダーク・グレーで塗りつぶすCanvasのインスタンスです。protected ComponentBasicSpinnerUI.createNextButton()増分ボタン、つまりスピナー値をspinner.getNextValueによって返されたオブジェクトで置き換えるコンポーネントを作成します。protected ComponentBasicSpinnerUI.createPreviousButton()減分ボタン、つまりスピナー値をspinner.getPreviousValueによって返されたオブジェクトで置き換えるコンポーネントを作成します。BasicComboBoxEditor.getEditorComponent()protected ComponentBasicSliderUI.getHighestValueLabel()ラベル・テーブル内で最小スライダ値に対応するラベルを返します。BasicComboBoxRenderer.getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus)protected ComponentBasicSliderUI.getLowestValueLabel()ラベル・テーブル内で最大スライダ値に対応するラベルを返します。BasicSplitPaneUI.getNonContinuousLayoutDivider()JSplitPaneが連続してレイアウトされていないように構成されている場合に使用する分割線を返します。protected ComponentBasicTabbedPaneUI.getVisibleComponent()可視コンポーネントを返します。Component型のパラメータを持つjavax.swing.plaf.basicのメソッド修飾子と型メソッド説明voidBasicComboBoxUI.ComboBoxLayoutManager.addLayoutComponent(String name, Component comp)voidBasicInternalFrameTitlePane.TitlePaneLayout.addLayoutComponent(String name, Component c)voidBasicInternalFrameUI.InternalFrameLayout.addLayoutComponent(String name, Component c)レイアウト・マネージャがコンポーネントごとの文字列を使用する場合は、レイアウトにコンポーネントcompを追加し、それをnameによって指定された文字列に関連付けます。voidBasicOptionPaneUI.ButtonAreaLayout.addLayoutComponent(String string, Component comp)voidBasicScrollBarUI.addLayoutComponent(String name, Component child)voidBasicSplitPaneDivider.DividerLayout.addLayoutComponent(String string, Component c)voidBasicSplitPaneUI.BasicHorizontalLayoutManager.addLayoutComponent(Component comp, Object constraints)指定された制約オブジェクトを使って、指定されたコンポーネントをレイアウトに追加します。voidBasicSplitPaneUI.BasicHorizontalLayoutManager.addLayoutComponent(String place, Component component)コンポーネントをplaceに追加します。voidBasicTabbedPaneUI.TabbedPaneLayout.addLayoutComponent(String name, Component comp)booleanJToolBarが所定の位置にドッキングできる場合は、trueを返します。protected voidBasicTreeUI.drawCentered(Component c, Graphics graphics, Icon icon, int x, int y)(x,y)を中心とするiconを描画します。BasicBorders.SplitPaneBorder.getBorderInsets(Component c)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にインストールします。voidBasicBorders.SplitPaneBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)protected voidBasicSliderUI.paintHorizontalLabel(Graphics g, int value, Component label)ラベル・テーブルの各ラベルに対して呼び出されます。protected voidBasicSliderUI.paintVerticalLabel(Graphics g, int value, Component label)ラベル・テーブルの各ラベルに対して呼び出されます。voidBasicComboBoxUI.ComboBoxLayoutManager.removeLayoutComponent(Component comp)voidBasicInternalFrameTitlePane.TitlePaneLayout.removeLayoutComponent(Component c)voidBasicInternalFrameUI.InternalFrameLayout.removeLayoutComponent(Component c)指定されたコンポーネントをレイアウトから削除します。voidBasicOptionPaneUI.ButtonAreaLayout.removeLayoutComponent(Component c)voidBasicScrollBarUI.removeLayoutComponent(Component child)voidBasicSplitPaneDivider.DividerLayout.removeLayoutComponent(Component c)voidBasicSplitPaneUI.BasicHorizontalLayoutManager.removeLayoutComponent(Component component)指定されたコンポーネントを削除します。voidBasicTabbedPaneUI.TabbedPaneLayout.removeLayoutComponent(Component comp)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のサブクラス修飾子と型クラス説明classMetalComboBoxUIを補助するJButtonサブクラスclass非推奨。Java 2プラットフォームv1.4以降使われていません。protected class非推奨。JDK version 9以降class各種のサイズおよびスタイルをレンダリングします。classJLF仕様のタイトル・バーを管理するクラスです。classMetalスクロール・バー矢印用のJButtonオブジェクトです。Component型のパラメータを持つjavax.swing.plaf.metalのメソッド修飾子と型メソッド説明protected voidMetalCheckBoxIconをペイントします。voidvoid水平線をペイントします。voidvoidvoidvoidvoidTreeControlIconをペイントします。voidMetalLookAndFeel.provideErrorFeedback(Component component)ユーザーが、フォーカスを持つ編集不可能なJTextFieldへのペーストなどの無効な操作を行おうとしたときに呼び出されます。
- 
javax.swing.plaf.synthでのComponentの使用Component型のパラメータを持つjavax.swing.plaf.synthのメソッド修飾子と型メソッド説明default voidprotected 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のサブクラス修飾子と型クラス説明classJTable内の個々のセルをレンダリング(表示)するための標準クラス。static classUIResourceを実装するDefaultTableCellRendererのサブクラス。classこれは、JTableのヘッダーを管理するオブジェクトです。Componentを返すjavax.swing.tableのメソッド修飾子と型メソッド説明TableCellEditor.getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)エディタの初期valueを設定します。DefaultTableCellRenderer.getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)デフォルトのテーブル・セル・レンダラを返します。TableCellRenderer.getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)セルを描画するのに使用されるコンポーネントを返します。
- 
javax.swing.textでのComponentの使用javax.swing.textでのComponentのサブクラスComponentを返すjavax.swing.textのメソッド修飾子と型メソッド説明protected ComponentComponentView.createComponent()このビューに関連付けられたコンポーネントを作成します。ComponentView.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のサブクラス修飾子と型クラス説明classエディタが提供されない場合に使用されるTextField。classeditingComponentを配置するコンテナ。classツリーのエントリを表示します。Componentとして宣言されているjavax.swing.treeのフィールド修飾子と型フィールド説明protected ComponentDefaultTreeCellEditor.editingComponenteditingContainerから取得され、編集で使用されるコンポーネントです。Componentを返すjavax.swing.treeのメソッド修飾子と型メソッド説明DefaultTreeCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)エディタを設定します。TreeCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)エディタの初期valueを設定します。DefaultTreeCellRenderer.getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)コンポーネントに渡される内容に基づいてレンダラを設定します。TreeCellRenderer.getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)現在のツリー・セルの値をvalueに設定します。