Class FlatTableHeaderBorder

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.border.Border, javax.swing.plaf.UIResource

    public class FlatTableHeaderBorder
    extends FlatEmptyBorder
    Cell border for sun.swing.table.DefaultTableCellHeaderRenderer (used by JTableHeader).

    Uses separate cell margins from UI defaults to allow easy customizing.

    Since:
    1.2
    See Also:
    Serialized Form
    • Field Detail

      • separatorColor

        protected java.awt.Color separatorColor
      • bottomSeparatorColor

        protected java.awt.Color bottomSeparatorColor
      • showTrailingVerticalLine

        protected boolean showTrailingVerticalLine
        Since:
        1.6
    • Constructor Detail

      • FlatTableHeaderBorder

        public FlatTableHeaderBorder()
    • Method Detail

      • getBorderInsets

        public java.awt.Insets getBorderInsets​(java.awt.Component c,
                                               java.awt.Insets insets)
        Overrides:
        getBorderInsets in class FlatEmptyBorder
      • paintBorder

        public void paintBorder​(java.awt.Component c,
                                java.awt.Graphics g,
                                int x,
                                int y,
                                int width,
                                int height)
        Specified by:
        paintBorder in interface javax.swing.border.Border
        Overrides:
        paintBorder in class javax.swing.border.EmptyBorder
      • isDraggedColumn

        protected boolean isDraggedColumn​(javax.swing.table.JTableHeader header,
                                          int x)
      • hideTrailingVerticalLine

        protected boolean hideTrailingVerticalLine​(javax.swing.table.JTableHeader header)