インタフェース
javax.swing.border.Borderの使用

Borderを使用しているパッケージ
パッケージ
説明
すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。
Swingコンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。
1つのインタフェースおよび多くのabstractクラスを提供しており、Swingはプラグイン可能なLook & Feel機能を提供するためにこれらを利用します。
基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。
デフォルトのLook & FeelであるJava Look & Feel (以前のコード名はMetal)に従って構築されたユーザー・インタフェース・オブジェクトを提供します。
javax.swing.JTableを処理するためのクラスとインタフェースを提供します。
javax.swing.JTreeを処理するためのクラスとインタフェースを提供します。
  • javax.swingでのBorderの使用

    Borderとして宣言されているjavax.swing内のフィールド
    修飾子と型
    フィールド
    説明
    protected static Border
    DefaultListCellRenderer.noFocusBorder
    フォーカス・ボーダーなし
    Borderを返すjavax.swing内のメソッド
    修飾子と型
    メソッド
    説明
    static Border
    BorderFactory.createBevelBorder(int type)
    指定されたタイプの斜影ボーダーを生成します。ハイライトにはコンポーネントの現在のバックグラウンド・カラーの明るい方の色調が使われ、陰影には暗い方の色調が使われます。
    static Border
    BorderFactory.createBevelBorder(int type, Color highlight, Color shadow)
    指定されたハイライトおよび陰影を使って、指定されたタイプの斜影ボーダーを生成します。
    static Border
    BorderFactory.createBevelBorder(int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner)
    ハイライト領域および陰影領域の内側および外側の縁に指定された色を使って、指定されたタイプの斜影ボーダーを生成します。
    static Border
    BorderFactory.createDashedBorder(Paint paint)
    指定されたpaintの破線ボーダーを作成します。
    static Border
    BorderFactory.createDashedBorder(Paint paint, float length, float spacing)
    指定されたpaint、相対的なlength、および相対的なspacingの破線ボーダーを作成します。
    static Border
    BorderFactory.createDashedBorder(Paint paint, float thickness, float length, float spacing, boolean rounded)
    指定されたpaintthickness、線形、相対的なlength、および相対的なspacingの破線ボーダーを作成します。
    static Border
    BorderFactory.createEmptyBorder()
    スペースを一切とらない空のボーダーを生成します。
    static Border
    BorderFactory.createEmptyBorder(int top, int left, int bottom, int right)
    上下左右の辺の幅を指定して、スペースをとるが、描画を行わない空のボーダーを生成します。
    static Border
    BorderFactory.createEtchedBorder()
    ハイライトおよび陰影にコンポーネントの現在のバックグラウンド・カラーを使って、指定されたタイプのエッチング・ボーダーを生成します。
    static Border
    BorderFactory.createEtchedBorder(int type)
    ハイライトおよび陰影にコンポーネントの現在のバックグラウンド・カラーを使って、指定されたタイプのエッチング・ボーダーを生成します。
    static Border
    BorderFactory.createEtchedBorder(int type, Color highlight, Color shadow)
    指定されたハイライトおよび陰影の色を使って、指定されたタイプのエッチング・ボーダーを生成します。
    static Border
    BorderFactory.createEtchedBorder(Color highlight, Color shadow)
    指定されたハイライトおよび陰影の色を使って、指定されたタイプのエッチング・ボーダーを生成します。
    static Border
    BorderFactory.createLineBorder(Color color)
    指定された色で線のボーダーを作成します。
    static Border
    BorderFactory.createLineBorder(Color color, int thickness)
    指定された色と幅で直線ボーダーを生成します。
    static Border
    BorderFactory.createLineBorder(Color color, int thickness, boolean rounded)
    指定された色と太さと隅の形状で直線ボーダーを作成します。
    static Border
    BorderFactory.createLoweredBevelBorder()
    くぼみ斜影の縁を持つボーダーを生成します。ハイライトにはコンポーネントの現在のバックグラウンド・カラーの明るい方の色調が使われ、陰影には暗い方の色調が使われます。
    static Border
    くぼみの縁および角の丸い斜影ボーダーを生成します。ハイライトにはコンポーネントの現在のバックグラウンド・カラーの明るい方の色調が使われ、陰影には暗い方の色調が使われます。
    static Border
    BorderFactory.createRaisedBevelBorder()
    浮出し斜影の縁を持つボーダーを生成します。ハイライトにはコンポーネントの現在のバックグラウンド・カラーの明るい方の色調が使われ、陰影には暗い方の色調が使われます。
    static Border
    浮出しの縁および角の丸い斜影ボーダーを生成します。ハイライトにはコンポーネントの現在のバックグラウンド・カラーの明るい方の色調が使われ、陰影には暗い方の色調が使われます。
    static Border
    BorderFactory.createSoftBevelBorder(int type)
    指定されたタイプの角の丸い斜影ボーダーを生成します。ハイライトにはコンポーネントの現在のバックグラウンド・カラーの明るい方の色調が使われ、陰影には暗い方の色調が使われます。
    static Border
    BorderFactory.createSoftBevelBorder(int type, Color highlight, Color shadow)
    指定されたハイライトおよび陰影を使って、指定されたタイプの角の丸い斜影ボーダーを生成します。
    static Border
    BorderFactory.createSoftBevelBorder(int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner)
    ハイライト領域および陰影領域の内側および外側の縁に指定された色を使って、指定されたタイプの角の丸い斜影ボーダーを生成します。
    static Border
    BorderFactory.createStrokeBorder(BasicStroke stroke)
    指定されたstrokeのボーダーを作成します。
    static Border
    BorderFactory.createStrokeBorder(BasicStroke stroke, Paint paint)
    指定されたstrokepaintのボーダーを作成します。
    JComponent.getBorder()
    このコンポーネントのボーダーを返します。ボーダーが現在設定されていない場合はnullを返します。
    JLayer.getBorder()
    ビュー・コンポーネントがjavax.swing.JComponentのインスタンスであれば、その機能をgetView().getBorder()メソッドに委譲し、それ以外の場合はnullを返します。
    UIDefaults.getBorder(Object key)
    keyの値がBorderである場合はそれを返し、それ以外の場合はnullを返します。
    UIDefaults.getBorder(Object key, Locale l)
    指定されたLocalekeyの値がBorderである場合はそれを返し、それ以外の場合はnullを返します。
    static Border
    UIManager.getBorder(Object key)
    デフォルトからボーダーを返します。
    static Border
    UIManager.getBorder(Object key, Locale l)
    デフォルトから、指定されたロケールに適したボーダーを返します。
    JScrollPane.getViewportBorder()
    ビュー・ポートを囲むBorderオブジェクトを返します。
    Border型のパラメータを持つjavax.swing内のメソッド
    修飾子と型
    メソッド
    説明
    BorderFactory.createCompoundBorder(Border outsideBorder, Border insideBorder)
    外側および内側の縁に使うボーダー・オブジェクトを指定して複合ボーダーを生成します。
    BorderFactory.createTitledBorder(Border border)
    空のタイトルを使用して新しいタイトル・ボーダーを作成します。指定のボーダー・オブジェクト、デフォルトのテキスト位置(現在のルック・アンド・フィールによって決定)、デフォルトの位置揃え(先頭)、デフォルトのフォントおよびテキスト色(現在のルック・アンド・フィールによって決定)を使用します。
    BorderFactory.createTitledBorder(Border border, String title)
    既存のボーダーにタイトルを追加します。デフォルトのテキスト位置(現在のルック・アンド・フィールによって決定)、デフォルトの位置揃え(先頭)、デフォルトのフォントおよびテキスト色(現在のルック・アンド・フィールによって決定)を使用します。
    BorderFactory.createTitledBorder(Border border, String title, int titleJustification, int titlePosition)
    テキスト位置を指定し、デフォルトのフォントとテキスト色(現在のルック・アンド・フィールによって決定)を使って、既存のボーダーにタイトルを追加します。
    BorderFactory.createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
    指定された位置とフォントで、デフォルト・テキスト・カラー(現在のLook & Feelによって決まる)を使って、既存のボーダーにタイトルを追加します。
    BorderFactory.createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
    指定された位置、フォント、およびカラーで、既存のボーダーにタイトルを追加します。
    protected String
    JComponent.AccessibleJComponent.getBorderTitle(Border b)
    (もしあれば)ボーダー階層に沿ってnullではないタイトルが付いたTitledBorderを再帰的に検索します。
    void
    JComponent.setBorder(Border border)
    このコンポーネントのボーダーを設定します。
    void
    JLayer.setBorder(Border border)
    ビュー・コンポーネントがjavax.swing.JComponentのインスタンスである場合、その機能をgetView().setBorder(Border)メソッドに委譲します。そうでない場合、このメソッドはノー・オペレーションです。
    final void
    JViewport.setBorder(Border border)
    ビュー・ポートは、通常の親または子のクリッピングでその子(「ビュー」と呼ばれる)を「スクロール」します。通常、ビューはスクロールとは反対の方向に移動します。
    void
    JScrollPane.setViewportBorder(Border viewportBorder)
    ビュー・ポートのボーダーを追加します。
  • javax.swing.borderでのBorderの使用

    Borderを実装しているjavax.swing.border内のクラス
    修飾子と型
    クラス
    説明
    class 
    サイズ指定のない空のボーダーを実装するクラスです。
    class 
    単純な2ラインの斜影ボーダーを実装するクラスです。
    class 
    2つのBorderオブジェクトを合成して単一のボーダーにするために使用する、複合Borderクラスです。合成は、内側Borderオブジェクトを外側Borderオブジェクトのイン・セットの中に入れ子にして行います。
    class 
    スペースを占めるが描画はしない、空の透過ボーダーを提供するクラスです。
    class 
    簡単なエッチング・ボーダーを実装するクラスです。浮彫りエッチング、あるいは彫込みエッチングのどちらも可能です。
    class 
    直線ボーダーを実装するクラスです。ボーダーの太さは任意、カラーは単色です。
    class 
    塗りつぶしカラーやタイリングされたアイコンを使う飾り縁ボーダーを提供するクラスです。
    class 
    角の丸い浮き出し斜影ボーダーまたはくぼみ斜影ボーダーを実装するクラスです。
    class 
    任意のストロークのボーダーを実装するクラスです。
    class 
    Stringによるタイトルを位置および位置揃えを指定して追加し、任意のボーダーを実装するクラスです。
    Borderとして宣言されているjavax.swing.border内のフィールド
    修飾子と型
    フィールド
    説明
    protected Border
    TitledBorder.border
    ボーダー。
    protected Border
    CompoundBorder.insideBorder
    内側のボーダー。
    protected Border
    CompoundBorder.outsideBorder
    外側のボーダー。
    Borderを返すjavax.swing.border内のメソッド
    修飾子と型
    メソッド
    説明
    static Border
    太さ1でColor.blackのLineBorderを取得するのに便利なメソッドです。
    static Border
    太さ1でColor.grayのLineBorderを取得するのに便利なメソッドです。
    TitledBorder.getBorder()
    タイトル付きボーダーのボーダーを返します。
    CompoundBorder.getInsideBorder()
    内側ボーダーのオブジェクトを返します。
    CompoundBorder.getOutsideBorder()
    外側ボーダーのオブジェクトを返します。
    Border型のパラメータを持つjavax.swing.border内のメソッド
    修飾子と型
    メソッド
    説明
    static Rectangle
    AbstractBorder.getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
    ボーダーのイン・セットから引数の値を減算して矩形を返します。
    void
    TitledBorder.setBorder(Border border)
    タイトル付きボーダーのボーダーを設定します。
    Border型のパラメータを持つjavax.swing.border内のコンストラクタ
    修飾子
    コンストラクタ
    説明
     
    CompoundBorder(Border outsideBorder, Border insideBorder)
    指定された内側ボーダーおよび外側ボーダーによる複合ボーダーを作成します。
     
    指定されたボーダーと空のタイトルで、TitledBorderのインスタンスを生成します。
     
    TitledBorder(Border border, String title)
    指定されたボーダーでTitledBorderのインスタンスを生成します。
     
    TitledBorder(Border border, String title, int titleJustification, int titlePosition)
    指定されたボーダー、タイトル、タイトルの位置揃え、およびタイトルの配置で、TitledBorderのインスタンスを生成します。
     
    TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
    指定されたボーダー、タイトル、タイトル位置揃え、タイトル位置、およびタイトル・フォントで、TitledBorderのインスタンスを生成します。
     
    TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
    指定されたボーダー、タイトル、タイトル位置揃え、タイトル位置、タイトル・フォント、およびタイトル・カラーで、TitledBorderのインスタンスを生成します。
  • javax.swing.plafでのBorderの使用

    Borderを実装しているjavax.swing.plaf内のクラス
    修飾子と型
    クラス
    説明
    class 
    UIResourceを実装するBorderラッパー・クラスです。
    static class 
    ベベル・ボーダーのUIリソース。
    static class 
    複合ボーダーUIリソース。
    static class 
    空のボーダーUIリソース。
    static class 
    エッチングされたボーダーUIリソース。
    static class 
    ライン・ボーダーのUIリソース。
    static class 
    マット・ボーダーのUIリソース。
    static class 
    タイトル付きボーダーUIリソース。
    Borderを返すjavax.swing.plaf内のメソッド
    修飾子と型
    メソッド
    説明
    static Border
    BorderUIResource.getBlackLineBorderUIResource()
    黒い線のボーダーのUIリソースを返します。
    static Border
    BorderUIResource.getEtchedBorderUIResource()
    エッチングされたボーダーUIリソースを返します。
    static Border
    下げべベル・ボーダーUIリソースを返します。
    static Border
    上げべベル・ボーダーUIリソースを返します。
    Border型のパラメータを持つjavax.swing.plaf内のコンストラクタ
    修飾子
    コンストラクタ
    説明
     
    既存のBorderインスタンスをラップする、UIResourceのボーダー・オブジェクトを作成します。
     
    CompoundBorderUIResource(Border outsideBorder, Border insideBorder)
    CompoundBorderUIResourceを構築します。
     
    TitledBorderUIResourceを構築します。
     
    TitledBorderUIResourceを構築します。
     
    TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition)
    TitledBorderUIResourceを構築します。
     
    TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
    TitledBorderUIResourceを構築します。
     
    TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
    TitledBorderUIResourceを構築します。
  • javax.swing.plaf.basicでのBorderの使用

    Borderを実装しているjavax.swing.plaf.basic内のクラス
    修飾子と型
    クラス
    説明
    static class 
    ボタンの周りにボーダーを描画します。
    static class 
    フィールドの周りにボーダーを描画します。
    static class 
    マージンをサポートするコンポーネントの周りにボーダーを描画します。
    static class 
    メニュー・バーの周囲にボーダーを描画します。
    static class 
    ラジオ・ボタンの周りにボーダーを描画します。
    static class 
    ロールオーバー・ツールバー・ボタンのための特別なthinボーダーです。
    static class 
    分割ペインの周囲にボーダーを描画します。
    static class 
    トグル・ボタンの周りにボーダーを描画します。
    Borderとして宣言されているjavax.swing.plaf.basic内のフィールド
    修飾子と型
    フィールド
    説明
    protected static Border
    BasicComboBoxRenderer.noFocusBorder
    空のBorder
    Borderを返すjavax.swing.plaf.basic内のメソッド
    修飾子と型
    メソッド
    説明
    protected Border
    BasicToolBarUI.createNonRolloverBorder()
    ツールバー・コンポーネントのための非ロールオーバー・ボーダーを作成します。
    protected Border
    BasicToolBarUI.createRolloverBorder()
    ツールバー・コンポーネントのためのロールオーバー・ボーダーを作成します。
    BasicSplitPaneDivider.getBorder()
    このコンポーネントのボーダーを返します。ボーダーが現在設定されていない場合はnullを返します。
    static Border
    BasicBorders.getButtonBorder()
    JButtonのボーダー・インスタンスを返します。
    static Border
    BasicBorders.getInternalFrameBorder()
    JInternalFrameのボーダー・インスタンスを返します。
    static Border
    BasicBorders.getMenuBarBorder()
    JMenuBarのボーダー・インスタンスを返します。
    protected Border
    ボタンの非ロールオーバー・ボーダーを返します。
    static Border
    BasicBorders.getProgressBarBorder()
    JProgressBarのボーダー・インスタンスを返します。
    static Border
    BasicBorders.getRadioButtonBorder()
    JRadioButtonのボーダー・インスタンスを返します。
    protected Border
    ボタンのロールオーバー・ボーダーを返します。
    static Border
    BasicBorders.getSplitPaneBorder()
    JSplitPaneのボーダー・インスタンスを返します。
    static Border
    JSplitPaneディバイダのボーダー・インスタンスを返します。
    static Border
    BasicBorders.getTextFieldBorder()
    JTextFieldのボーダー・インスタンスを返します。
    static Border
    BasicBorders.getToggleButtonBorder()
    JToggleButtonのボーダー・インスタンスを返します。
    Border型のパラメータを持つjavax.swing.plaf.basic内のメソッド
    修飾子と型
    メソッド
    説明
    void
    BasicSplitPaneDivider.setBorder(Border border)
    このコンポーネントのボーダーを設定します。
  • javax.swing.plaf.metalでのBorderの使用

    Borderを実装しているjavax.swing.plaf.metal内のクラス
    修飾子と型
    クラス
    説明
    static class 
    クラスはJButtonのボーダーを表します。
    static class 
    クラスは3Dボーダーを表します。
    static class 
    クラスはJInternalFrameのボーダーを表します。
    static class 
    クラスはJMenuBarのボーダーを表します。
    static class 
    クラスはJMenuItemのボーダーを表します。
    static class 
    クラスはオプション・ダイアログのボーダーを表します。
    static class 
    Paletteが使用するボーダーです。
    static class 
    クラスはJPopupMenuのボーダーを表します。
    static class 
    クラスは、ロールオーバーButtonのボーダーを表します。
    static class 
    クラスはJScrollPaneのボーダーを表します。
    static class 
    テーブル・ヘッダーのボーダーです。
    static class 
    クラスはJTestFieldのボーダーを表します。
    static class 
     
    static class 
    クラスはJToolBarのボーダーを表します。
    Borderを返すjavax.swing.plaf.metal内のメソッド
    修飾子と型
    メソッド
    説明
    static Border
    MetalBorders.getButtonBorder()
    JButtonのボーダー・インスタンスを返します。
    static Border
    MetalBorders.getDesktopIconBorder()
    Desktop Iconのボーダー・インスタンスを返します。
    static Border
    MetalBorders.getTextBorder()
    テキスト・コンポーネントのボーダー・インスタンスを返します。
    static Border
    MetalBorders.getTextFieldBorder()
    JTextFieldのボーダー・インスタンスを返します。
    static Border
    MetalBorders.getToggleButtonBorder()
    JToggleButtonのボーダー・インスタンスを返します。
  • javax.swing.tableでのBorderの使用

    Borderとして宣言されているjavax.swing.table内のフィールド
    修飾子と型
    フィールド
    説明
    protected static Border
    DefaultTableCellRenderer.noFocusBorder
    フォーカスのないボーダー。
  • javax.swing.treeでのBorderの使用

    Borderとして宣言されているjavax.swing.tree内のフィールド
    修飾子と型
    フィールド
    説明
    protected Border
    DefaultTreeCellEditor.DefaultTextField.border
    使用するボーダーです。
    Borderを返すjavax.swing.tree内のメソッド
    修飾子と型
    メソッド
    説明
    DefaultTreeCellEditor.DefaultTextField.getBorder()
    JComponent.getBorderをオーバーライドして、現在のボーダーを返します。
    Border型のパラメータを持つjavax.swing.tree内のメソッド
    修飾子と型
    メソッド
    説明
    void
    DefaultTreeCellEditor.DefaultTextField.setBorder(Border border)
    このコンポーネントのボーダーを設定します。
    Border型のパラメータを持つjavax.swing.tree内のコンストラクタ
    修飾子
    コンストラクタ
    説明
     
    DefaultTreeCellEditor.DefaultTextFieldオブジェクトを構築します。