Class SwingTableColumn


  • public class SwingTableColumn
    extends Object
    Used for TableModels in JFormDesigner forms to specify additional information for columns, which are not supported by DefaultTableModel.
    Since:
    3.0
    • Constructor Detail

      • SwingTableColumn

        public SwingTableColumn​(Object[] values,
                                int preferredWidth,
                                int minWidth,
                                int maxWidth,
                                boolean resizable)
        Constructs a column.
    • Method Detail

      • getValues

        public Object[] getValues()
        Returns the allowed values of this column or null. A JComboBox is used as cell editor if a column has values.
      • getPreferredWidth

        public int getPreferredWidth()
        Returns the preferred width of this column or 0 if not specified.
      • getMinWidth

        public int getMinWidth()
        Returns the minimum width of this column or 0 if not specified.
      • getMaxWidth

        public int getMaxWidth()
        Returns the maximum width of this column or 0 if not specified.
      • getResizable

        public boolean getResizable()
        Returns whether the user is allowed to resize this column.