| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting graphics and images.
|
| java.awt.dnd |
Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.border |
Provides classes and interface for drawing specialized borders around a Swing component.
|
| javax.swing.plaf |
Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
|
| javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
| javax.swing.plaf.metal |
Provides user interface objects built according to the Java look and feel (once codenamed
Metal), which is the default look and feel.
|
| javax.swing.plaf.nimbus |
Provides user interface objects built according to the cross-platform Nimbus look and feel.
|
| javax.swing.plaf.synth |
Synth is a skinnable look and feel in which all painting is delegated.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text components.
|
| Modifier and Type | Field and Description |
|---|---|
Insets |
GridBagConstraints.insets
This field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
Container.getInsets()
Determines the insets of this container, which indicate the size of the container's border.
|
Insets |
Toolkit.getScreenInsets(GraphicsConfiguration
Gets the insets of the screen.
|
Insets |
Container.insets()
Deprecated.
As of JDK version 1.1, replaced by
getInsets().
|
| Constructor and Description | |
|---|---|
GridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets
Creates a
GridBagConstraints object with all of its fields set to the passed-in arguments.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
Autoscroll.getAutoscrollInsets()
This method returns the
Insets describing the autoscrolling region or border relative to the geometry of the implementing Component.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
JViewport.getInsets()
Returns the insets (border) dimensions as (0,0,0,0), since borders are not supported on a
JViewport.
|
Insets |
JComponent.getInsets()
If a border has been set on this component, returns the border's insets; otherwise calls
super.getInsets.
|
Insets |
JViewport.getInsets(Insets
Returns an
Insets object containing this
JViewports inset values.
|
Insets |
JComponent.getInsets(Insets
Returns an
Insets object containing this component's inset values.
|
Insets |
UIDefaults.getInsets(Object
If the value of
key is an
Insets return it, otherwise return
null.
|
static Insets |
UIManager.getInsets(Object
Returns an
Insets object from the defaults.
|
Insets |
UIDefaults.getInsets(Object
If the value of
key for the given
Locale is an
Insets return it, otherwise return
null.
|
static Insets |
UIManager.getInsets(Object
Returns an
Insets object from the defaults that is appropriate for the given locale.
|
Insets |
JPopupMenu.getMargin()
Returns the margin, in pixels, between the popup menu's border and its containers.
|
Insets |
AbstractButton.getMargin()
Returns the margin between the button's border and the label.
|
Insets |
JToolBar.getMargin()
Returns the margin between the tool bar's border and its buttons.
|
Insets |
JMenuBar.getMargin()
Returns the margin between the menubar's border and its menus.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
JViewport.getInsets(Insets
Returns an
Insets object containing this
JViewports inset values.
|
Insets |
JComponent.getInsets(Insets
Returns an
Insets object containing this component's inset values.
|
void |
AbstractButton.setMargin(Insets
Sets space for margin between the button's border and the label.
|
void |
JToolBar.setMargin(Insets
Sets the margin between the tool bar's border and its buttons.
|
void |
JMenuBar.setMargin(Insets
Sets the margin between the menubar's border and its menus.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
EmptyBorder.getBorderInsets()
Returns the insets of the border.
|
Insets |
MatteBorder.getBorderInsets()
Returns the insets of the border.
|
Insets |
AbstractBorder.getBorderInsets(Component
This default implementation returns a new
Insets object that is initialized by the
AbstractBorder method.
|
Insets |
Border.getBorderInsets(Component
Returns the insets of the border.
|
Insets |
StrokeBorder.getBorderInsets(Component
Reinitializes the
insets parameter with this border's current insets.
|
Insets |
TitledBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
AbstractBorder.getBorderInsets(Component
Reinitializes the insets parameter with this Border's current Insets.
|
Insets |
EtchedBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
EmptyBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
CompoundBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
SoftBevelBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
LineBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
BevelBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
MatteBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
StrokeBorder.getBorderInsets(Component
Reinitializes the
insets parameter with this border's current insets.
|
Insets |
TitledBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
AbstractBorder.getBorderInsets(Component
Reinitializes the insets parameter with this Border's current Insets.
|
Insets |
EtchedBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
EmptyBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
CompoundBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
SoftBevelBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
LineBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
BevelBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
MatteBorder.getBorderInsets(Component
Reinitialize the insets parameter with this Border's current Insets.
|
| Constructor and Description | |
|---|---|
EmptyBorder(Insets
Creates an empty border with the specified insets.
|
|
MatteBorder(Insets
Creates a matte border with the specified insets and color.
|
|
MatteBorder(Insets
Creates a matte border with the specified insets and tile icon.
|
| Modifier and Type | Class and Description |
|---|---|
class |
InsetsUIResource
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
BorderUIResource.getBorderInsets(Component
|
| Constructor and Description | |
|---|---|
EmptyBorderUIResource(Insets
|
| Modifier and Type | Field and Description |
|---|---|
protected Insets |
BasicTabbedPaneUI.contentBorderInsets
|
protected Insets |
BasicSliderUI.focusInsets
|
protected Insets |
BasicSliderUI.insetCache
|
protected Insets |
BasicComboBoxUI.padding
If specified, these insets act as padding around the cell renderer when laying out and painting the "selected" item in the combo box.
|
protected Insets |
BasicTabbedPaneUI.selectedTabPadInsets
|
protected Insets |
BasicTabbedPaneUI.tabAreaInsets
|
protected Insets |
BasicTabbedPaneUI.tabInsets
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
BasicBorders.SplitPaneBorder.getBorderInsets(Component
|
Insets |
BasicBorders.ButtonBorder.getBorderInsets(Component
|
Insets |
BasicBorders.ToggleButtonBorder.getBorderInsets(Component
|
Insets |
BasicBorders.RadioButtonBorder.getBorderInsets(Component
|
Insets |
BasicBorders.MenuBarBorder.getBorderInsets(Component
|
Insets |
BasicBorders.MarginBorder.getBorderInsets(Component
|
Insets |
BasicBorders.FieldBorder.getBorderInsets(Component
|
protected Insets |
BasicTabbedPaneUI.getContentBorderInsets(int tabPlacement)
|
static Insets |
BasicGraphicsUtils.getEtchedInsets()
Returns the amount of space taken up by a border drawn by
drawEtchedRect()
|
static Insets |
BasicGraphicsUtils.getGrooveInsets()
Returns the amount of space taken up by a border drawn by
drawGroove()
|
Insets |
BasicSplitPaneDivider.getInsets()
If a border has been set on this component, returns the border's insets, else calls super.getInsets.
|
protected Insets |
BasicComboBoxUI.getInsets()
Gets the insets from the JComboBox.
|
Insets |
BasicToolBarUI.DragWindow.getInsets()
|
Insets |
BasicSplitPaneUI.getInsets(JComponent
Returns the insets.
|
Insets |
BasicDesktopIconUI.getInsets(JComponent
|
protected Insets |
BasicTabbedPaneUI.getSelectedTabPadInsets(int tabPlacement)
|
protected Insets |
BasicTabbedPaneUI.getTabAreaInsets(int tabPlacement)
|
protected Insets |
BasicTabbedPaneUI.getTabInsets(int tabPlacement, int tabIndex)
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
BasicProgressBarUI.getAmountFull(Insets
This determines the amount of the progress bar that should be filled based on the percent done gathered from the model.
|
protected int |
BasicSplitPaneUI.BasicHorizontalLayoutManager.getAvailableSize(Dimension
Returns the available width based on the container size and Insets.
|
Insets |
BasicBorders.ButtonBorder.getBorderInsets(Component
|
Insets |
BasicBorders.ToggleButtonBorder.getBorderInsets(Component
|
Insets |
BasicBorders.RadioButtonBorder.getBorderInsets(Component
|
Insets |
BasicBorders.MenuBarBorder.getBorderInsets(Component
|
Insets |
BasicBorders.MarginBorder.getBorderInsets(Component
|
Insets |
BasicBorders.FieldBorder.getBorderInsets(Component
|
protected int |
BasicSplitPaneUI.BasicHorizontalLayoutManager.getInitialLocation(Insets
Returns the left inset, unless the Insets are null in which case 0 is returned.
|
protected void |
BasicTreeUI.paintExpandControl(Graphics
Paints the expand (toggle) part of a row.
|
protected void |
BasicTreeUI.paintHorizontalPartOfLeg(Graphics
Paints the horizontal part of the leg.
|
protected void |
BasicTreeUI.paintRow(Graphics
Paints the renderer part of a row.
|
protected void |
BasicProgressBarUI.paintString(Graphics
|
protected void |
BasicTreeUI.paintVerticalPartOfLeg(Graphics
Paints the vertical part of the leg.
|
protected static void |
BasicTabbedPaneUI.rotateInsets(Insets
|
protected void |
BasicSplitPaneUI.BasicHorizontalLayoutManager.setComponentToSize(Component
Sets the width of the component c to be size, placing its x location at location, y to the insets.top and height to the containersize.height less the top and bottom insets.
|
| Modifier and Type | Field and Description |
|---|---|
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
The default editor border
Insets.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
MetalBorders.Flush3DBorder.getBorderInsets(Component
|
Insets |
MetalBorders.ButtonBorder.getBorderInsets(Component
|
Insets |
MetalBorders.InternalFrameBorder.getBorderInsets(Component
|
Insets |
MetalBorders.PaletteBorder.getBorderInsets(Component
|
Insets |
MetalBorders.OptionDialogBorder.getBorderInsets(Component
|
Insets |
MetalBorders.MenuBarBorder.getBorderInsets(Component
|
Insets |
MetalBorders.MenuItemBorder.getBorderInsets(Component
|
Insets |
MetalBorders.PopupMenuBorder.getBorderInsets(Component
|
Insets |
MetalBorders.ToolBarBorder.getBorderInsets(Component
|
Insets |
MetalBorders.ScrollPaneBorder.getBorderInsets(Component
|
Insets |
MetalBorders.TableHeaderBorder.getBorderInsets(Component
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
MetalBorders.Flush3DBorder.getBorderInsets(Component
|
Insets |
MetalBorders.ButtonBorder.getBorderInsets(Component
|
Insets |
MetalBorders.InternalFrameBorder.getBorderInsets(Component
|
Insets |
MetalBorders.PaletteBorder.getBorderInsets(Component
|
Insets |
MetalBorders.OptionDialogBorder.getBorderInsets(Component
|
Insets |
MetalBorders.MenuBarBorder.getBorderInsets(Component
|
Insets |
MetalBorders.MenuItemBorder.getBorderInsets(Component
|
Insets |
MetalBorders.PopupMenuBorder.getBorderInsets(Component
|
Insets |
MetalBorders.ToolBarBorder.getBorderInsets(Component
|
Insets |
MetalBorders.ScrollPaneBorder.getBorderInsets(Component
|
Insets |
MetalBorders.TableHeaderBorder.getBorderInsets(Component
|
protected void |
MetalTreeUI.paintHorizontalPartOfLeg(Graphics
|
protected void |
MetalTreeUI.paintVerticalPartOfLeg(Graphics
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
NimbusStyle.getInsets(SynthContext
Returns the Insets that are used to calculate sizing information.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
NimbusStyle.getInsets(SynthContext
Returns the Insets that are used to calculate sizing information.
|
| Constructor and Description | |
|---|---|
PaintContext(Insets
Creates a new PaintContext which does not attempt to cache or scale any cached images.
|
|
PaintContext(Insets
Creates a new PaintContext.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
SynthStyle.getInsets(SynthContext
Returns the Insets that are used to calculate sizing information.
|
protected Insets |
SynthTabbedPaneUI.getTabInsets(int tabPlacement, int tabIndex)
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
SynthStyle.getInsets(SynthContext
Returns the Insets that are used to calculate sizing information.
|
protected void |
SynthTreeUI.paintExpandControl(Graphics
Paints the expand (toggle) part of a row.
|
protected void |
SynthTreeUI.paintHorizontalPartOfLeg(Graphics
Paints the horizontal part of the leg.
|
protected void |
SynthTreeUI.paintVerticalPartOfLeg(Graphics
Paints the vertical part of the leg.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
JTextComponent.getMargin()
Returns the margin between the text component's border and its text.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JTextComponent.setMargin(Insets
Sets margin space between the text component's border and its text.
|