Class JTable

All Implemented Interfaces:
ColumnSelectionModel, ListSelectionModel

public class JTable extends JComponent implements ListSelectionModel, ColumnSelectionModel
  • Constructor Details

  • Method Details

    • getSelectionModel

      public ListSelectionModel getSelectionModel()
      Specified by:
      getSelectionModel in interface ColumnSelectionModel
    • getColumnModel

      public ColumnSelectionModel getColumnModel()
    • setPreferredScrollableViewportSize

      public void setPreferredScrollableViewportSize(Dimension dimension)
    • clearSelection

      public void clearSelection()
    • setRowSelectionAllowed

      public void setRowSelectionAllowed(boolean b)
    • setRowSelectionInterval

      public void setRowSelectionInterval(int i, int j)
    • setCellSelectionEnabled

      public void setCellSelectionEnabled(boolean enabled)
    • addListSelectionListener

      public void addListSelectionListener(Object listener)
      It will be the function of the JavaScript on the page to do with selectionListener what is desired.
      Specified by:
      addListSelectionListener in interface ListSelectionModel
      Parameters:
      listener -
    • getColumn

      public TableColumn getColumn(int i)
      Specified by:
      getColumn in interface ColumnSelectionModel
    • toHTML

      public String toHTML()
      Specified by:
      toHTML in class Component