Search in sources :

Example 31 with AbstractTableModel

use of javax.swing.table.AbstractTableModel in project cayenne by apache.

the class MergerTokenSelectorController method checkAllAction.

public void checkAllAction() {
    boolean isCheckAllSelected = view.getCheckAll().isSelected();
    if (isCheckAllSelected) {
        excludedTokens.clear();
    } else {
        excludedTokens.addAll(selectableTokensList);
    }
    AbstractTableModel model = (AbstractTableModel) view.getTokens().getModel();
    model.fireTableDataChanged();
}
Also used : AbstractTableModel(javax.swing.table.AbstractTableModel)

Aggregations

AbstractTableModel (javax.swing.table.AbstractTableModel)31 TableModel (javax.swing.table.TableModel)8 PackageEntry (com.intellij.psi.codeStyle.PackageEntry)4 JTable (javax.swing.JTable)4 JBTable (com.intellij.ui.table.JBTable)3 JFrame (javax.swing.JFrame)3 JScrollPane (javax.swing.JScrollPane)3 JButton (javax.swing.JButton)2 JPanel (javax.swing.JPanel)2 TableModelEvent (javax.swing.event.TableModelEvent)2 TableRowSorter (javax.swing.table.TableRowSorter)2 FormBuilder (com.jgoodies.forms.builder.FormBuilder)1 FormLayout (com.jgoodies.forms.layout.FormLayout)1 Dimension (java.awt.Dimension)1 Font (java.awt.Font)1 Point (java.awt.Point)1 UnsupportedFlavorException (java.awt.datatransfer.UnsupportedFlavorException)1 MouseEvent (java.awt.event.MouseEvent)1 MalformedURLException (java.net.MalformedURLException)1 ArrayList (java.util.ArrayList)1