/** Attaches listeners to the JTable. */ protected void installListeners() { super.installListeners(); table.addPropertyChangeListener(this); }
/** @see javax.swing.plaf.basic.BasicTableUI#uninstallListeners() */ protected void uninstallListeners() { table.removePropertyChangeListener(this); super.uninstallListeners(); }
public void installDefaults() { super.installDefaults(); // Setup the rowheight. The font may change if UI switches FontMetrics fm = table.getFontMetrics(table.getFont()); table.setRowHeight(fm.getHeight() + (fm.getHeight() / 4)); }