Class NumberCellRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, TableCellRenderer

public class NumberCellRenderer extends DefaultTableCellRenderer
Number renderer in JTable.
See Also:
  • Field Details

  • Constructor Details

    • NumberCellRenderer

      public NumberCellRenderer()
      Constructor.
    • NumberCellRenderer

      public NumberCellRenderer(int precision)
      Constructor.
      Parameters:
      precision - The number of digits after the decimal separator.
    • NumberCellRenderer

      public NumberCellRenderer(NumberFormat numberFormat)
      Constructor.
      Parameters:
      numberFormat - The number format.
  • Method Details

    • getNumberFormat

      public NumberFormat getNumberFormat()
      Returns the number format used for rendering.
      Returns:
      The number format used for rendering.
    • setValue

      public void setValue(Object value)
      Overrides:
      setValue in class DefaultTableCellRenderer