Class CustomCellRenderer

    • Field Detail

      • defaultBorder

        public static final Border defaultBorder
        The default border.
    • Constructor Detail

      • CustomCellRenderer

        public CustomCellRenderer()
        Default constructor.
    • Method Detail

      • getDefaultFocusBorder

        public static Border getDefaultFocusBorder​(JTable table,
                                                   Object value,
                                                   boolean isSelected,
                                                   int row,
                                                   int column)
        Returns the border to be used for a given cell in a table.
        Parameters:
        table - the table.
        value - the value to be rendered.
        isSelected - whether the row is selected or not.
        row - the row number of the cell.
        column - the column number of the cell.
        Returns:
        the border to be used for a given cell in a table.