| パッケージ | 説明 | 
|---|---|
| java.awt | 
 ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。 
 | 
| java.awt.dnd | 
 ドラッグ&ドロップ操作は、多くのグラフィカル・ユーザー・インタフェース・システムで見られる直接的な操作ジェスチャで、GUIの表現要素に論理的に関連付けられた2つのエンティティ間で情報を変換するメカニズムを提供します。 
 | 
| javax.swing | 
 すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。 
 | 
| javax.swing.border | 
 Swingコンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。 
 | 
| javax.swing.plaf | 
 SwingがプラガブルなLook & Feel機能を提供するために使用する、1つのインタフェースおよび多くの抽象クラスを提供します。 
 | 
| javax.swing.plaf.basic | 
 基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。 
 | 
| javax.swing.plaf.metal | 
 デフォルトのLook & FeelであるJava Look & Feel (以前のコード名はMetal)に従って構築されたユーザー・インタフェース・オブジェクトを提供します。 
 | 
| javax.swing.plaf.nimbus | 
 クロス・プラットフォームのNimbus Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。 
 | 
| javax.swing.plaf.synth | 
 
      Synthは、すべてのペイントが委譲されるスキン設定可能なLook & Feelです。 
 | 
| javax.swing.text | 
 編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。 
 | 
| 修飾子と型 | フィールド | 説明 | 
|---|---|---|
Insets | 
GridBagConstraints.insets
コンポーネントの外側のパディング、つまりコンポーネントとその表示領域の端までの領域の最小値を指定します。 
 | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
Container.getInsets()
コンテナの境界のサイズを示す、このコンテナのイン・セットを判定します。 
 | 
|
Insets | 
Toolkit.getScreenInsets(GraphicsConfiguration gc)
スクリーンのイン・セットを返します。 
 | 
|
Insets | 
Container.insets()
非推奨。 
 
JDK Version 1.1以降は、 
getInsets()に置き換えられています。 | 
| コンストラクタ | 説明 | 
|---|---|
GridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets, int ipadx, int ipady)
すべてのフィールドを渡された引数に設定して、 
GridBagConstraintsオブジェクトを作成します。 | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
Autoscroll.getAutoscrollInsets()
このメソッドは、実装しているComponentの幾何学的図形を基準に、自動スクロール領域またはボーダーを記述した 
Insetsを返します。 | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
JViewport.getInsets()
JViewportではボーダーがサポートされていないため、イン・セット(ボーダー)の寸法を(0,0,0,0)として返します。 | 
|
Insets | 
JComponent.getInsets()
このコンポーネントでボーダーが設定されている場合はボーダーのイン・セットを返し、それ以外の場合は 
super.getInsetsを呼び出します。 | 
|
Insets | 
JViewport.getInsets(Insets insets)
この 
JViewportのイン・セット値を含むInsetsオブジェクトを返します。 | 
|
Insets | 
JComponent.getInsets(Insets insets)
このコンポーネントのイン・セット値を含む 
Insetsオブジェクトを返します。 | 
|
static Insets | 
UIManager.getInsets(Object key)
デフォルトから 
Insetsオブジェクトを返します。 | 
|
Insets | 
UIDefaults.getInsets(Object key)
keyの値がInsetsである場合はそれを返し、それ以外の場合はnullを返します。 | 
|
static Insets | 
UIManager.getInsets(Object key, Locale l)
デフォルトから、指定されたロケールに適した 
Insetsオブジェクトを返します。 | 
|
Insets | 
UIDefaults.getInsets(Object key, Locale l)
指定された 
Localeのkeyの値がInsetsである場合はそれを返し、それ以外の場合はnullを返します。 | 
|
Insets | 
JToolBar.getMargin()
ツールバーのボーダーとそのボタンの間のマージンを返します。 
 | 
|
Insets | 
JPopupMenu.getMargin()
ポップアップ・メニューのボーダーとコンテナの間にあるマージンを返します(ピクセル単位)。 
 | 
|
Insets | 
AbstractButton.getMargin()
ボタンのボーダーとラベルの間のマージンを返します。 
 | 
|
Insets | 
JMenuBar.getMargin()
メニュー・バーのボーダーとそのメニューの間のマージンを返します。 
 | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
JViewport.getInsets(Insets insets)
この 
JViewportのイン・セット値を含むInsetsオブジェクトを返します。 | 
|
Insets | 
JComponent.getInsets(Insets insets)
このコンポーネントのイン・セット値を含む 
Insetsオブジェクトを返します。 | 
|
void | 
JToolBar.setMargin(Insets m)
ツールバーのボーダーとそのボタンの間のマージンを設定します。 
 | 
|
void | 
AbstractButton.setMargin(Insets m)
ボタンのボーダーとラベルの間のマージンを設定します。 
 | 
|
void | 
JMenuBar.setMargin(Insets m)
メニュー・バーのボーダーとそのメニューの間のマージンを設定します。 
 | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
EmptyBorder.getBorderInsets()
ボーダーのイン・セットを返します。 
 | 
|
Insets | 
MatteBorder.getBorderInsets()
ボーダーのイン・セットを返します。 
 | 
|
Insets | 
AbstractBorder.getBorderInsets(Component c)
このデフォルトの実装は、 
AbstractBorder.getBorderInsets(Component,Insets)メソッドによって初期化される新しいInsetsオブジェクトを返します。 | 
|
Insets | 
Border.getBorderInsets(Component c)
ボーダーのイン・セットを返します。 
 | 
|
Insets | 
StrokeBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このボーダーの現在のイン・セットで初期化し直します。 | 
|
Insets | 
SoftBevelBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
TitledBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
EtchedBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
BevelBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
EmptyBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
MatteBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
LineBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
AbstractBorder.getBorderInsets(Component c, Insets insets)
インセット・パラメータを、このBorderの現在のイン・セットで初期化し直します。 
 | 
|
Insets | 
CompoundBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
StrokeBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このボーダーの現在のイン・セットで初期化し直します。 | 
|
Insets | 
SoftBevelBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
TitledBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
EtchedBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
BevelBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
EmptyBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
MatteBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
LineBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
|
Insets | 
AbstractBorder.getBorderInsets(Component c, Insets insets)
インセット・パラメータを、このBorderの現在のイン・セットで初期化し直します。 
 | 
|
Insets | 
CompoundBorder.getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。 
 | 
| コンストラクタ | 説明 | 
|---|---|
EmptyBorder(Insets borderInsets)
指定されたイン・セットの値を持つ、空のボーダーを作成します。 
 | 
|
MatteBorder(Insets borderInsets, Color matteColor)
飾り縁ボーダーを、指定されたイン・セットおよびカラーで作成します。 
 | 
|
MatteBorder(Insets borderInsets, Icon tileIcon)
飾り縁ボーダーを、指定されたイン・セットおよびタイル・アイコンで作成します。 
 | 
| 修飾子と型 | クラス | 説明 | 
|---|---|---|
class  | 
InsetsUIResource  | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
BorderUIResource.getBorderInsets(Component c)  | 
| コンストラクタ | 説明 | 
|---|---|
EmptyBorderUIResource(Insets insets)  | 
| 修飾子と型 | フィールド | 説明 | 
|---|---|---|
protected Insets | 
BasicTabbedPaneUI.contentBorderInsets  | 
|
protected Insets | 
BasicSliderUI.focusInsets  | 
|
protected Insets | 
BasicSliderUI.insetCache  | 
|
protected Insets | 
BasicComboBoxUI.padding
これらのイン・セットは、「選択された」項目をコンボボックスに配置し、ペイントする際に、セル・レンダラ周囲のパディングとして機能します。 
 | 
|
protected Insets | 
BasicTabbedPaneUI.selectedTabPadInsets  | 
|
protected Insets | 
BasicTabbedPaneUI.tabAreaInsets  | 
|
protected Insets | 
BasicTabbedPaneUI.tabInsets  | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
BasicBorders.SplitPaneBorder.getBorderInsets(Component c)  | 
|
Insets | 
BasicBorders.ButtonBorder.getBorderInsets(Component c, Insets insets)  | 
|
Insets | 
BasicBorders.ToggleButtonBorder.getBorderInsets(Component c, Insets insets)  | 
|
Insets | 
BasicBorders.RadioButtonBorder.getBorderInsets(Component c, Insets insets)  | 
|
Insets | 
BasicBorders.MenuBarBorder.getBorderInsets(Component c, Insets insets)  | 
|
Insets | 
BasicBorders.MarginBorder.getBorderInsets(Component c, Insets insets)  | 
|
Insets | 
BasicBorders.FieldBorder.getBorderInsets(Component c, Insets insets)  | 
|
protected Insets | 
BasicTabbedPaneUI.getContentBorderInsets(int tabPlacement)  | 
|
static Insets | 
BasicGraphicsUtils.getEtchedInsets()
drawEtchedRect()によって描画されるボーダーで占有される領域の量を返します。 | 
|
static Insets | 
BasicGraphicsUtils.getGrooveInsets()
drawGroove()によって描画されるボーダーで占有される領域の量を返します。 | 
|
Insets | 
BasicToolBarUI.DragWindow.getInsets()  | 
|
Insets | 
BasicSplitPaneDivider.getInsets()
このコンポーネントでボーダーが設定されている場合は、ボーダーのイン・セットを返します。そうでない場合はsuper.getInsetsを呼び出します。 
 | 
|
protected Insets | 
BasicComboBoxUI.getInsets()
JComboBoxからイン・セットを取得します。 
 | 
|
Insets | 
BasicDesktopIconUI.getInsets(JComponent c)  | 
|
Insets | 
BasicSplitPaneUI.getInsets(JComponent jc)
イン・セットを返します。 
 | 
|
protected Insets | 
BasicTabbedPaneUI.getSelectedTabPadInsets(int tabPlacement)  | 
|
protected Insets | 
BasicTabbedPaneUI.getTabAreaInsets(int tabPlacement)  | 
|
protected Insets | 
BasicTabbedPaneUI.getTabInsets(int tabPlacement, int tabIndex)  | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
protected int | 
BasicProgressBarUI.getAmountFull(Insets b, int width, int height)
モデルから集めた完了パーセント情報に基づいて、塗りつぶすべき進捗バーの量を決定します。 
 | 
|
protected int | 
BasicSplitPaneUI.BasicHorizontalLayoutManager.getAvailableSize(Dimension containerSize, Insets insets)
コンテナのサイズとイン・セットに基づいて利用可能な幅を返します。 
 | 
|
Insets | 
BasicBorders.ButtonBorder.getBorderInsets(Component c, Insets insets)  | 
|
Insets | 
BasicBorders.ToggleButtonBorder.getBorderInsets(Component c, Insets insets)  | 
|
Insets | 
BasicBorders.RadioButtonBorder.getBorderInsets(Component c, Insets insets)  | 
|
Insets | 
BasicBorders.MenuBarBorder.getBorderInsets(Component c, Insets insets)  | 
|
Insets | 
BasicBorders.MarginBorder.getBorderInsets(Component c, Insets insets)  | 
|
Insets | 
BasicBorders.FieldBorder.getBorderInsets(Component c, Insets insets)  | 
|
protected int | 
BasicSplitPaneUI.BasicHorizontalLayoutManager.getInitialLocation(Insets insets)
Insetsがnullでない場合は左イン・セット、nullの場合は0を返します。 
 | 
|
protected void | 
BasicTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
行の展開(切り替え)部分をペイントします。 
 | 
|
protected void | 
BasicTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
脚の水平部分をペイントします。 
 | 
|
protected void | 
BasicTreeUI.paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
行のレンダラ部分をペイントします。 
 | 
|
protected void | 
BasicProgressBarUI.paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)  | 
|
protected void | 
BasicTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
脚の垂直部分をペイントします。 
 | 
|
protected static void | 
BasicTabbedPaneUI.rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement)  | 
|
protected void | 
BasicSplitPaneUI.BasicHorizontalLayoutManager.setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize)
コンポーネントcの幅をsize、x位置をlocation、yをinsets.top、高さをcontainersize.height (上および下イン・セットを引いたもの)に設定します。 
 | 
| 修飾子と型 | フィールド | 説明 | 
|---|---|---|
protected static Insets | 
MetalBorders.ButtonBorder.borderInsets  | 
|
protected static Insets | 
MetalBorders.MenuBarBorder.borderInsets  | 
|
protected static Insets | 
MetalBorders.MenuItemBorder.borderInsets  | 
|
protected static Insets | 
MetalBorders.PopupMenuBorder.borderInsets  | 
|
protected Insets | 
MetalBorders.TableHeaderBorder.editorBorderInsets  | 
|
protected static Insets | 
MetalComboBoxEditor.editorBorderInsets
デフォルトのエディタのボーダーの 
Insetsです。 | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
MetalBorders.Flush3DBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.ButtonBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.InternalFrameBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.PaletteBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.OptionDialogBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.MenuBarBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.MenuItemBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.PopupMenuBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.ToolBarBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.ScrollPaneBorder.getBorderInsets(Component c, Insets insets)  | 
|
Insets | 
MetalBorders.TableHeaderBorder.getBorderInsets(Component c, Insets insets)  | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
MetalBorders.Flush3DBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.ButtonBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.InternalFrameBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.PaletteBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.OptionDialogBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.MenuBarBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.MenuItemBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.PopupMenuBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.ToolBarBorder.getBorderInsets(Component c, Insets newInsets)  | 
|
Insets | 
MetalBorders.ScrollPaneBorder.getBorderInsets(Component c, Insets insets)  | 
|
Insets | 
MetalBorders.TableHeaderBorder.getBorderInsets(Component c, Insets insets)  | 
|
protected void | 
MetalTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)  | 
|
protected void | 
MetalTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)  | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
NimbusStyle.getInsets(SynthContext ctx, Insets in)
サイズ変更情報の計算に使用されるInsetsを返します。 
 | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
NimbusStyle.getInsets(SynthContext ctx, Insets in)
サイズ変更情報の計算に使用されるInsetsを返します。 
 | 
| コンストラクタ | 説明 | 
|---|---|
PaintContext(Insets insets, Dimension canvasSize, boolean inverted)
キャッシュされたイメージをキャッシュまたはスケーリングしようとしない、新しいPaintContextを作成します。 
 | 
|
PaintContext(Insets insets, Dimension canvasSize, boolean inverted, AbstractRegionPainter.PaintContext.CacheMode cacheMode, double maxH, double maxV)
新しいPaintContextを作成します。 
 | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
SynthStyle.getInsets(SynthContext context, Insets insets)
サイズ変更情報の計算に使用されるInsetsを返します。 
 | 
|
protected Insets | 
SynthTabbedPaneUI.getTabInsets(int tabPlacement, int tabIndex) | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
SynthStyle.getInsets(SynthContext context, Insets insets)
サイズ変更情報の計算に使用されるInsetsを返します。 
 | 
|
protected void | 
SynthTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
行の展開(切り替え)部分をペイントします。 
 | 
|
protected void | 
SynthTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
脚の水平部分をペイントします。 
 | 
|
protected void | 
SynthTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
脚の垂直部分をペイントします。 
 | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
Insets | 
JTextComponent.getMargin()
テキスト・コンポーネントの境界とそのテキストの間のマージンを返します。 
 | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
void | 
JTextComponent.setMargin(Insets m)
テキスト・コンポーネントの境界とそのテキストの間のマージン空白を設定します。 
 | 
 バグまたは機能を送信 
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。 
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved.  Use is subject to license terms.  Documentation Redistribution Policyも参照してください。