Uses of Interface javax.swing.border.Border

Uses in package javax.swing.plaf.basic

Classes implementing javax.swing.border.Border

class
A border whose appearance depends on the state of the enclosed button.
class
A border that makes its enclosed component appear as lowered into the surface.
class
An invisible, but spacing border whose margin is determined by calling the getMargin() method of the enclosed component.
class
A border for drawing a separator line below JMenuBar.
class
A border for drawing radio buttons in the Basic look and feel.
class
A one-pixel thick border for rollover buttons, for example in tool bars.
class
A border for JSplitPanes in the Basic look and feel.
class
A border for toggle buttons in the Basic look and feel.

Fields of type javax.swing.border.Border

Border
A shared border instance for all renderers.

Methods with parameter type javax.swing.border.Border

void
Sets the border of this divider.

Methods with return type javax.swing.border.Border

Border
This method creates a new nonRolloverBorder for JButtons when the JToolBar's rollover property is set to false.
Border
This method creates a new rollover border for JButtons when the JToolBar's rollover property is set to true.
Border
Retrieves the border of this divider.
Border
Returns a border for drawing push buttons.
Border
Returns a border that is composed of a raised bevel border and a one-pixel thick line border.
Border
Returns a border for drawing a two-pixel thick separator line below menu bars.
Border
Returns a two-pixel thick, green LineBorderUIResource.
Border
Returns a border for drawing radio buttons.
Border
Returns a border for drawing a one-pixel thick border around split panes that are interrupted where the divider joins the border.
Border
Returns a border for drawing a one-pixel thick border around the divider of split panes.
Border
Returns a border for drawing a border around a text field that makes the field appear as etched into the surface.
Border
Returns a border for drawing toggle buttons.

Uses in package javax.swing.border

Classes implementing javax.swing.border.Border

class
An invisible zero-width border, serving as a base class for implementing more interesting borders.
class
A rectangular, two pixel thick border that causes the enclosed area to appear as if it was raising out of or lowered into the screen.
class
A Border that is composed of an interior and an exterior border, where the interior border is tightly nested into the exterior.
class
A border for leaving a specifiable number of pixels empty around the enclosed component.
class
A border that looks like an engraving etched into the background surface, or (in its raised variant) coming out of the surface plane.
class
A border that consists of a line whose thickness and color can be specified.
class
A border that is filled with either a solid color or with repeated icon tiles.
class
A rectangular, three pixel thick border that looks like a BevelBorder with slightly softened corners.
class
A border that paints a title on top of another border.

Constructors with parameter type javax.swing.border.Border

CompoundBorder.CompoundBorder(Border outsideBorder, Border insideBorder)
Constructs a CompoundBorder with the specified inside and outside borders.
Constructs an initially untitled TitledBorder given another border.
Constructs a TitledBorder given its border and title text.
TitledBorder.TitledBorder(Border border, String title, int titleJustification, int titlePosition)
Constructs a TitledBorder given its border, title text, horizontal alignment, and vertical position.
TitledBorder.TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
Constructs a TitledBorder given its border, title text, horizontal alignment, vertical position, and font.
TitledBorder.TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
Constructs a TitledBorder given its border, title text, horizontal alignment, vertical position, font, and color.

Fields of type javax.swing.border.Border

Border
The border underneath the title.
Border
The inside border, which is painted between the bordered Component and the outside border.
Border
The outside border, which is painted outside both the bordered Component and the inside border.

Methods with parameter type javax.swing.border.Border

Rectangle
AbstractBorder.getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
Returns a rectangle that covers the specified area minus the insets required to draw the specified border (if the border is null, zero insets are assumed).
void
Sets the border underneath the title.

Methods with return type javax.swing.border.Border

Border
Returns a black, one pixel thick, plain LineBorder.
Border
Returns a gray, one pixel thick, plain LineBorder.
Border
Retrieves the border underneath the title.
Border
Returns the inside border, which is painted between the bordered Component and the outside border.
Border
Returns the outside border, which is painted outside both the bordered Component and the inside border.

Uses in package javax.swing.tree

Constructors with parameter type javax.swing.border.Border

Creates a DefaultTextField object.

Fields of type javax.swing.border.Border

Border
The border of the text field.

Methods with return type javax.swing.border.Border

Border
Returns the border of the text field.

Uses in package javax.swing.table

Fields of type javax.swing.border.Border

Border

Uses in package javax.swing

Fields of type javax.swing.border.Border

Border
This border is used whenever renderer doesn't have a focus.

Methods with parameter type javax.swing.border.Border

CompoundBorder
BorderFactory.createCompoundBorder(Border outsideBorder, Border insideBorder)
Create a compound border specifying the border objects to use for the outside and inside edges.
TitledBorder
Create a new title border with an empty title specifying the border object, using the default text position (sitting on the top line) and default justification (left) and using the default font, text color, and border determined by the current look and feel.
TitledBorder
Add a title to an existing border, specifying the text of the title, using the default positioning (sitting on the top line) and default justification (left) and using the default font and text color determined by the current look and feel.
TitledBorder
BorderFactory.createTitledBorder(Border border, String title, int titleJustification, int titlePosition)
Add a title to an existing border, specifying the text of the title along with its positioning, using the default font and text color determined by the current look and feel.
TitledBorder
BorderFactory.createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
Add a title to an existing border, specifying the text of the title along with its positioning and font, using the default text color determined by the current look and feel.
TitledBorder
BorderFactory.createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
Add a title to an existing border, specifying the text of the title along with its positioning, font, and color.
String
Recursivly searches a border hierarchy (starting at border) for a titled border and returns the title if one is found, null otherwise.
void
Set the value of the border property.
void
void

Methods with return type javax.swing.border.Border

Border
Create a beveled border of the specified type, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.
Border
BorderFactory.createBevelBorder(int type, Color highlight, Color shadow)
Create a beveled border of the specified type, using the specified highlighting and shadowing.
Border
BorderFactory.createBevelBorder(int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner)
Create a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas.
Border
Creates an empty border that takes up no space.
Border
BorderFactory.createEmptyBorder(int top, int left, int bottom, int right)
Creates an empty border that takes up no space but which does no drawing, specifying the width of the top, left, bottom, and right sides.
Border
Create a border with an "etched" look using the component's current background color for highlighting and shading.
Border
Create a border with an "etched" look using the component's current background color for highlighting and shading.
Border
BorderFactory.createEtchedBorder(int etchType, Color highlight, Color shadow)
Create a border with an "etched" look using the specified highlighting and shading colors.
Border
Create a border with an "etched" look using the specified highlighting and shading colors.
Border
Creates a line border withe the specified color.
Border
BorderFactory.createLineBorder(Color color, int thickness)
Creates a line border withe the specified color and width.
Border
Created a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.
Border
Created a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.
Border
Get the value of the border property.
Border
Returns a border entry for the default locale.
Border
Returns a border from the defaults table.
Border
Returns a border entry for a specic locale.
Border
Returns a border from the defaults table.
Border

Uses in package javax.swing.plaf.metal

Classes implementing javax.swing.border.Border

class
A border used for JButton components.

This Border implementation can handle only instances of AbstractButton and their subclasses.

If the Metal Look and Feel's current theme is 'Ocean' the border will be painted with a special highlight when the mouse cursor if over the button (ie. the property rollover of the button's model is true) and is not a direct child of a JToolBar.

class
A simple 3D border.
class
A border used for the JInternalFrame component.
class
A border used for JMenuBar components.
class
A border used for JMenu and JMenuItem components.
class
A border used for JInternalFrame components that are presented as dialogs (by the JOptionPane class).
class
A border used for a JInternalFrame when it is being used as a palette.
class
A border implementation for popup menus.
class
A button border that is only visible when the mouse pointer is within the button's bounds.
class
A border for JScrollPane components.
class
A border for table header cells.
class
A border used for the JTextField component.
class
A border used for the JToggleButton component.
class
A border used for the JToolBar component.

Methods with return type javax.swing.border.Border

Border
Returns a border with no rollover effect for buttons in the tool bar.
Border
Returns a border for Swing buttons in the Metal Look & Feel.
Border
Returns a border instance that is used with a JInternalFrame when it is in the iconified state.
Border
Returns the border that is used for text components (except text fields, which use getTextFieldBorder().
Border
Returns a border for use by the JTextField component.
Border
Returns a border for use with JToggleButton components.

Uses in package javax.swing.plaf

Classes implementing javax.swing.border.Border

class
A wrapper for Border that also implements the UIResource marker interface.
class
A BevelBorder that also implements the UIResource marker interface.
class
A CompoundBorder that also implements the UIResource marker interface.
class
An EmptyBorder that also implements the UIResource marker interface.
class
An EtchedBorder that also implements the UIResource marker interface.
class
A LineBorder that also implements the UIResource marker interface.
class
A MatteBorder that also implements the UIResource marker interface.
class
A TitledBorder that also implements the UIResource marker interface.

Constructors with parameter type javax.swing.border.Border

Constructs a BorderUIResource for wrapping a Border object.
Constructs a CompoundBorderUIResource with the specified inside and outside borders.
Constructs an initially untitled TitledBorderUIResource given another border.
Constructs a TitledBorder given its border and title text.
BorderUIResource.TitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition)
Constructs a TitledBorderUIResource given its border, title text, horizontal alignment, and vertical position.
BorderUIResource.TitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
Constructs a TitledBorder given its border, title text, horizontal alignment, vertical position, and font.
BorderUIResource.TitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
Constructs a TitledBorder given its border, title text, horizontal alignment, vertical position, font, and color.

Methods with return type javax.swing.border.Border

Border
Returns a shared instance of BorderUIResource.LineBorderUIResource for a black, one-pixel width border.
Border
Returns a shared instance of an etched border which also is marked as an UIResource.
Border
Returns a shared instance of BorderUIResource.BevelBorderUIResource whose bevelType is BevelBorder.LOWERED.
Border
Returns a shared instance of BorderUIResource.BevelBorderUIResource whose bevelType is BevelBorder.RAISED.