Uses of Interface
javax.swing.border.Border
-
Packages that use Border Package Description 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.table Provides classes and interfaces for dealing withjavax.swing.JTable.javax.swing.tree Provides classes and interfaces for dealing withjavax.swing.JTree. -
-
Uses of Border in javax.swing
Fields in javax.swing declared as Border Modifier and Type Field Description protected static BorderDefaultListCellRenderer. noFocusBorderNo focus borderMethods in javax.swing that return Border Modifier and Type Method Description static BorderBorderFactory. 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.static BorderBorderFactory. createBevelBorder(int type, Color highlight, Color shadow)Creates a beveled border of the specified type, using the specified highlighting and shadowing.static BorderBorderFactory. 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.static BorderBorderFactory. createDashedBorder(Paint paint)Creates a dashed border of the specifiedpaint.static BorderBorderFactory. createDashedBorder(Paint paint, float length, float spacing)Creates a dashed border of the specifiedpaint, relativelength, and relativespacing.static BorderBorderFactory. createDashedBorder(Paint paint, float thickness, float length, float spacing, boolean rounded)Creates a dashed border of the specifiedpaint,thickness, line shape, relativelength, and relativespacing.static BorderBorderFactory. createEmptyBorder()Creates an empty border that takes up no space.static BorderBorderFactory. 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.static BorderBorderFactory. createEtchedBorder()Creates a border with an "etched" look using the component's current background color for highlighting and shading.static BorderBorderFactory. createEtchedBorder(int type)Creates a border with an "etched" look using the component's current background color for highlighting and shading.static BorderBorderFactory. createEtchedBorder(int type, Color highlight, Color shadow)Creates a border with an "etched" look using the specified highlighting and shading colors.static BorderBorderFactory. createEtchedBorder(Color highlight, Color shadow)Creates a border with an "etched" look using the specified highlighting and shading colors.static BorderBorderFactory. createLineBorder(Color color)Creates a line border with the specified color.static BorderBorderFactory. createLineBorder(Color color, int thickness)Creates a line border with the specified color and width.static BorderBorderFactory. createLineBorder(Color color, int thickness, boolean rounded)Creates a line border with the specified color, thickness, and corner shape.static BorderBorderFactory. 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.static BorderBorderFactory. createLoweredSoftBevelBorder()Creates a beveled border with a lowered edge and softened corners, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.static BorderBorderFactory. 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.static BorderBorderFactory. createRaisedSoftBevelBorder()Creates a beveled border with a raised edge and softened corners, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.static BorderBorderFactory. createSoftBevelBorder(int type)Creates a beveled border of the specified type with softened corners, using brighter shades of the component's current background color for highlighting, and darker shading for shadows.static BorderBorderFactory. createSoftBevelBorder(int type, Color highlight, Color shadow)Creates a beveled border of the specified type with softened corners, using the specified highlighting and shadowing.static BorderBorderFactory. createSoftBevelBorder(int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner)Creates a beveled border of the specified type with softened corners, using the specified colors for the inner and outer edges of the highlight and the shadow areas.static BorderBorderFactory. createStrokeBorder(BasicStroke stroke)Creates a border of the specifiedstroke.static BorderBorderFactory. createStrokeBorder(BasicStroke stroke, Paint paint)Creates a border of the specifiedstrokeandpaint.BorderJComponent. getBorder()Returns the border of this component ornullif no border is currently set.BorderJLayer. getBorder()Delegates its functionality to thegetView().getBorder()method, if the view component is an instance ofjavax.swing.JComponent, otherwise returnsnull.BorderUIDefaults. getBorder(Object key)If the value ofkeyis aBorderreturn it, otherwise returnnull.BorderUIDefaults. getBorder(Object key, Locale l)If the value ofkeyfor the givenLocaleis aBorderreturn it, otherwise returnnull.static BorderUIManager. getBorder(Object key)Returns a border from the defaults.static BorderUIManager. getBorder(Object key, Locale l)Returns a border from the defaults that is appropriate for the given locale.BorderJScrollPane. getViewportBorder()Returns theBorderobject that surrounds the viewport.Methods in javax.swing with parameters of type Border Modifier and Type Method Description static CompoundBorderBorderFactory. createCompoundBorder(Border outsideBorder, Border insideBorder)Creates a compound border specifying the border objects to use for the outside and inside edges.static TitledBorderBorderFactory. createTitledBorder(Border border)Creates a new titled border with an empty title, the specified border object, the default text position (determined by the current look and feel), the default justification (leading), and the default font and text color (determined by the current look and feel).static TitledBorderBorderFactory. createTitledBorder(Border border, String title)Adds a title to an existing border, with default positioning (determined by the current look and feel), default justification (leading) and the default font and text color (determined by the current look and feel).static TitledBorderBorderFactory. 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).static TitledBorderBorderFactory. 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).static TitledBorderBorderFactory. 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.protected StringJComponent.AccessibleJComponent. getBorderTitle(Border b)Recursively search through the border hierarchy (if it exists) for a TitledBorder with a non-null title.voidJComponent. setBorder(Border border)Sets the border of this component.voidJLayer. setBorder(Border border)Delegates its functionality to thegetView().setBorder(Border)method, if the view component is an instance ofjavax.swing.JComponent, otherwise this method is a no-op.voidJViewport. setBorder(Border border)The viewport "scrolls" its child (called the "view") by the normal parent/child clipping (typically the view is moved in the opposite direction of the scroll).voidJScrollPane. setViewportBorder(Border viewportBorder)Adds a border around the viewport. -
Uses of Border in javax.swing.border
Classes in javax.swing.border that implement Border Modifier and Type Class Description classAbstractBorderA class that implements an empty border with no size.classBevelBorderA class which implements a simple two-line bevel border.classCompoundBorderA composite Border class used to compose two Border objects into a single border by nesting an inside Border object within the insets of an outside Border object.classEmptyBorderA class which provides an empty, transparent border which takes up space but does no drawing.classEtchedBorderA class which implements a simple etched border which can either be etched-in or etched-out.classLineBorderA class which implements a line border of arbitrary thickness and of a single color.classMatteBorderA class which provides a matte-like border of either a solid color or a tiled icon.classSoftBevelBorderA class which implements a raised or lowered bevel with softened corners.classStrokeBorderA class which implements a border of an arbitrary stroke.classTitledBorderA class which implements an arbitrary border with the addition of a String title in a specified position and justification.Fields in javax.swing.border declared as Border Modifier and Type Field Description protected BorderTitledBorder. borderThe border.protected BorderCompoundBorder. insideBorderThe inside border.protected BorderCompoundBorder. outsideBorderThe outside border.Methods in javax.swing.border that return Border Modifier and Type Method Description static BorderLineBorder. createBlackLineBorder()Convenience method for getting the Color.black LineBorder of thickness 1.static BorderLineBorder. createGrayLineBorder()Convenience method for getting the Color.gray LineBorder of thickness 1.BorderTitledBorder. getBorder()Returns the border of the titled border.BorderCompoundBorder. getInsideBorder()Returns the inside border object.BorderCompoundBorder. getOutsideBorder()Returns the outside border object.Methods in javax.swing.border with parameters of type Border Modifier and Type Method Description static RectangleAbstractBorder. getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)Returns a rectangle using the arguments minus the insets of the border.voidTitledBorder. setBorder(Border border)Sets the border of the titled border.Constructors in javax.swing.border with parameters of type Border Constructor Description CompoundBorder(Border outsideBorder, Border insideBorder)Creates a compound border with the specified outside and inside borders.TitledBorder(Border border)Creates a TitledBorder instance with the specified border and an empty title.TitledBorder(Border border, String title)Creates a TitledBorder instance with the specified border and title.TitledBorder(Border border, String title, int titleJustification, int titlePosition)Creates a TitledBorder instance with the specified border, title, title-justification, and title-position.TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)Creates a TitledBorder instance with the specified border, title, title-justification, title-position, and title-font.TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color. -
Uses of Border in javax.swing.plaf
Classes in javax.swing.plaf that implement Border Modifier and Type Class Description classBorderUIResourceA Border wrapper class which implements UIResource.static classBorderUIResource.BevelBorderUIResourceA bevel border UI resource.static classBorderUIResource.CompoundBorderUIResourceA compound border UI resource.static classBorderUIResource.EmptyBorderUIResourceAn empty border UI resource.static classBorderUIResource.EtchedBorderUIResourceAn etched border UI resource.static classBorderUIResource.LineBorderUIResourceA line border UI resource.static classBorderUIResource.MatteBorderUIResourceA matte border UI resource.static classBorderUIResource.TitledBorderUIResourceA titled border UI resource.Methods in javax.swing.plaf that return Border Modifier and Type Method Description static BorderBorderUIResource. getBlackLineBorderUIResource()Returns a black line border UI resource.static BorderBorderUIResource. getEtchedBorderUIResource()Returns a etched border UI resource.static BorderBorderUIResource. getLoweredBevelBorderUIResource()Returns a lowered bevel border UI resource.static BorderBorderUIResource. getRaisedBevelBorderUIResource()Returns a raised bevel border UI resource.Constructors in javax.swing.plaf with parameters of type Border Constructor Description BorderUIResource(Border delegate)Creates a UIResource border object which wraps an existing Border instance.CompoundBorderUIResource(Border outsideBorder, Border insideBorder)Constructs aCompoundBorderUIResource.TitledBorderUIResource(Border border)Constructs aTitledBorderUIResource.TitledBorderUIResource(Border border, String title)Constructs aTitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition)Constructs aTitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont)Constructs aTitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)Constructs aTitledBorderUIResource. -
Uses of Border in javax.swing.plaf.basic
Classes in javax.swing.plaf.basic that implement Border Modifier and Type Class Description static classBasicBorders.ButtonBorderDraws a border around a button.static classBasicBorders.FieldBorderDraws the border around a field.static classBasicBorders.MarginBorderDraws the border around components which support margins.static classBasicBorders.MenuBarBorderDraws the border around a menu bar.static classBasicBorders.RadioButtonBorderDraws the border around a radio button.static classBasicBorders.RolloverButtonBorderSpecial thin border for rollover toolbar buttons.static classBasicBorders.SplitPaneBorderDraws the border around the splitpane.static classBasicBorders.ToggleButtonBorderDraws the border around a toggle button.Fields in javax.swing.plaf.basic declared as Border Modifier and Type Field Description protected static BorderBasicComboBoxRenderer. noFocusBorderAn emptyBorder.Methods in javax.swing.plaf.basic that return Border Modifier and Type Method Description protected BorderBasicToolBarUI. createNonRolloverBorder()Creates the non rollover border for toolbar components.protected BorderBasicToolBarUI. createRolloverBorder()Creates a rollover border for toolbar components.BorderBasicSplitPaneDivider. getBorder()Returns the border of this component or null if no border is currently set.static BorderBasicBorders. getButtonBorder()Returns a border instance for aJButton.static BorderBasicBorders. getInternalFrameBorder()Returns a border instance for aJInternalFrame.static BorderBasicBorders. getMenuBarBorder()Returns a border instance for aJMenuBar.protected BorderBasicToolBarUI. getNonRolloverBorder(AbstractButton b)Returns a non-rollover border for the button.static BorderBasicBorders. getProgressBarBorder()Returns a border instance for aJProgressBar.static BorderBasicBorders. getRadioButtonBorder()Returns a border instance for aJRadioButton.protected BorderBasicToolBarUI. getRolloverBorder(AbstractButton b)Returns a rollover border for the button.static BorderBasicBorders. getSplitPaneBorder()Returns a border instance for aJSplitPane.static BorderBasicBorders. getSplitPaneDividerBorder()Returns a border instance for aJSplitPanedivider.static BorderBasicBorders. getTextFieldBorder()Returns a border instance for aJTextField.static BorderBasicBorders. getToggleButtonBorder()Returns a border instance for aJToggleButton.Methods in javax.swing.plaf.basic with parameters of type Border Modifier and Type Method Description voidBasicSplitPaneDivider. setBorder(Border border)Sets the border of this component. -
Uses of Border in javax.swing.plaf.metal
Classes in javax.swing.plaf.metal that implement Border Modifier and Type Class Description static classMetalBorders.ButtonBorderThe class represents the border of aJButton.static classMetalBorders.Flush3DBorderThe class represents the 3D border.static classMetalBorders.InternalFrameBorderThe class represents the border of aJInternalFrame.static classMetalBorders.MenuBarBorderThe class represents the border of aJMenuBar.static classMetalBorders.MenuItemBorderThe class represents the border of aJMenuItem.static classMetalBorders.OptionDialogBorderThe class represents the border of an option dialog.static classMetalBorders.PaletteBorderBorder for a Palette.static classMetalBorders.PopupMenuBorderThe class represents the border of aJPopupMenu.static classMetalBorders.RolloverButtonBorderThe class represents the border of a rolloverButton.static classMetalBorders.ScrollPaneBorderThe class represents the border of aJScrollPane.static classMetalBorders.TableHeaderBorderBorder for a Table Headerstatic classMetalBorders.TextFieldBorderThe class represents the border of aJTestField.static classMetalBorders.ToggleButtonBorderstatic classMetalBorders.ToolBarBorderThe class represents the border of aJToolBar.Methods in javax.swing.plaf.metal that return Border Modifier and Type Method Description protected BorderMetalToolBarUI. createNonRolloverBorder()protected BorderMetalToolBarUI. createRolloverBorder()static BorderMetalBorders. getButtonBorder()Returns a border instance for aJButton.static BorderMetalBorders. getDesktopIconBorder()Returns a border instance for a Desktop Icon.static BorderMetalBorders. getTextBorder()Returns a border instance for a text component.static BorderMetalBorders. getTextFieldBorder()Returns a border instance for aJTextField.static BorderMetalBorders. getToggleButtonBorder()Returns a border instance for aJToggleButton. -
Uses of Border in javax.swing.table
Fields in javax.swing.table declared as Border Modifier and Type Field Description protected static BorderDefaultTableCellRenderer. noFocusBorderA border without focus. -
Uses of Border in javax.swing.tree
Fields in javax.swing.tree declared as Border Modifier and Type Field Description protected BorderDefaultTreeCellEditor.DefaultTextField. borderBorder to use.Methods in javax.swing.tree that return Border Modifier and Type Method Description BorderDefaultTreeCellEditor.DefaultTextField. getBorder()OverridesJComponent.getBorderto returns the current border.Methods in javax.swing.tree with parameters of type Border Modifier and Type Method Description voidDefaultTreeCellEditor.DefaultTextField. setBorder(Border border)Sets the border of this component.Constructors in javax.swing.tree with parameters of type Border Constructor Description DefaultTextField(Border border)Constructs aDefaultTreeCellEditor.DefaultTextFieldobject.
-