クラス
javax.swing.border.TitledBorderの使用
| パッケージ | 説明 |
|---|---|
| javax.swing |
すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。
|
| javax.swing.plaf |
1つのインタフェースおよび多くのabstractクラスを提供しており、Swingはプラグイン可能なLook & Feel機能を提供するためにこれらを利用します。
|
-
javax.swingでのTitledBorderの使用
TitledBorderを返すjavax.swing内のメソッド 修飾子と型 メソッド 説明 static TitledBorderBorderFactory. createTitledBorder(String title)指定のタイトルを使用して新しいタイトル・ボーダーを生成します。デフォルトのボーダー・タイプ(現在のルック・アンド・フィールによって決定)、デフォルトのテキスト位置(現在のルック・アンド・フィールによって決定)、デフォルトの位置揃え(先頭)、デフォルトのフォントおよびテキスト色(現在のルック・アンド・フィールによって決定)を使用します。static TitledBorderBorderFactory. createTitledBorder(Border border)空のタイトルを使用して新しいタイトル・ボーダーを作成します。指定のボーダー・オブジェクト、デフォルトのテキスト位置(現在のルック・アンド・フィールによって決定)、デフォルトの位置揃え(先頭)、デフォルトのフォントおよびテキスト色(現在のルック・アンド・フィールによって決定)を使用します。static TitledBorderBorderFactory. createTitledBorder(Border border, String title)既存のボーダーにタイトルを追加します。デフォルトのテキスト位置(現在のルック・アンド・フィールによって決定)、デフォルトの位置揃え(先頭)、デフォルトのフォントおよびテキスト色(現在のルック・アンド・フィールによって決定)を使用します。static TitledBorderBorderFactory. createTitledBorder(Border border, String title, int titleJustification, int titlePosition)テキスト位置を指定し、デフォルトのフォントとテキスト色(現在のルック・アンド・フィールによって決定)を使って、既存のボーダーにタイトルを追加します。static TitledBorderBorderFactory. createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)指定された位置とフォントで、デフォルト・テキスト・カラー(現在のLook & Feelによって決まる)を使って、既存のボーダーにタイトルを追加します。static TitledBorderBorderFactory. createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)指定された位置、フォント、およびカラーで、既存のボーダーにタイトルを追加します。 -
javax.swing.plafでのTitledBorderの使用
javax.swing.plaf内のTitledBorderのサブクラス 修飾子と型 クラス 説明 static classBorderUIResource.TitledBorderUIResourceタイトル付きボーダーUIリソース。