API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. BorderFactory View Source
Author(s)
David Kloba
Since
Version
1.35 11/17/05
Serial
Hierarchy
 Object
      BorderFactory
Implements
Subclasses
Description
public class BorderFactory
  Factory class for vending standard Border objects.
See also:   
Constructors
private BorderFactory ()
Don't let anyone instantiate this class
Methods
Hide/Show inherited methods
publicstatic Border createBevelBorder (int type)
  Creates a beveled border of the specified type, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.
publicstatic Border createBevelBorder (int type, Color highlight, Color shadow)
  Creates a beveled border of the specified type, using the specified highlighting and shadowing.
publicstatic Border createBevelBorder (int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner)
  Creates a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas.
publicstatic CompoundBorder createCompoundBorder ()
  Creates a compound border with a null inside edge and a null outside edge.
publicstatic CompoundBorder createCompoundBorder (Border outsideBorder, Border insideBorder)
  Creates a compound border specifying the border objects to use for the outside and inside edges.
publicstatic Border createEmptyBorder ()
  Creates an empty border that takes up no space.
publicstatic Border createEmptyBorder (int top, int left, int bottom, int right)
  Creates an empty border that takes up space but which does no drawing, specifying the width of the top, left, bottom, and right sides.
publicstatic Border createEtchedBorder ()
  Creates a border with an "etched" look using the component's current background color for highlighting and shading.
publicstatic Border createEtchedBorder (Color highlight, Color shadow)
  Creates a border with an "etched" look using the specified highlighting and shading colors.
publicstatic Border createEtchedBorder (int type)
  Creates a border with an "etched" look using the component's current background color for highlighting and shading.
publicstatic Border createEtchedBorder (int type, Color highlight, Color shadow)
  Creates a border with an "etched" look using the specified highlighting and shading colors.
publicstatic Border createLineBorder (Color color)
  Creates a line border withe the specified color.
publicstatic Border createLineBorder (Color color, int thickness)
  Creates a line border with the specified color and width.
publicstatic Border createLoweredBevelBorder ()
  Creates a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.
publicstatic MatteBorder createMatteBorder (int top, int left, int bottom, int right, Color color)
  Creates a matte-look border using a solid color.
publicstatic MatteBorder createMatteBorder (int top, int left, int bottom, int right, Icon tileIcon)
  Creates a matte-look border that consists of multiple tiles of a specified icon.
publicstatic Border createRaisedBevelBorder ()
  Creates a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.
pack-privatestatic Border createSharedBevel (int type)
publicstatic TitledBorder createTitledBorder (Border border)
  Creates a new titled border with an empty title, the specified border object, the default text position (sitting on the top line), the default justification (leading), and the default font and text color (determined by the current look and feel).
publicstatic TitledBorder createTitledBorder (Border border, String title)
  Adds a title to an existing border, with default positioning (sitting on the top line), default justification (leading) and the default font and text color (determined by the current look and feel).
publicstatic TitledBorder createTitledBorder (Border border, String title, int titleJustification, int titlePosition)
  Adds a title to an existing border, with the specified positioning and using the default font and text color (determined by the current look and feel).
publicstatic TitledBorder createTitledBorder (Border border, String title, int titleJustification, int titlePosition, Font titleFont)
  Adds a title to an existing border, with the specified positioning and font, and using the default text color (determined by the current look and feel).
publicstatic TitledBorder createTitledBorder (Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
  Adds a title to an existing border, with the specified positioning, font and color.
publicstatic TitledBorder createTitledBorder (String title)
  Creates a new titled border with the specified title, the default border type (determined by the current look and feel), the default text position (sitting on the top line), the default justification (leading), and the default font and text color (determined by the current look and feel).
Fields
Hide/Show inherited fields
pack-privatefinalstatic Border emptyBorder
pack-privatefinalstatic Border sharedEtchedBorder
pack-privatefinalstatic Border sharedLoweredBevel
pack-privatefinalstatic Border sharedRaisedBevel
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar