Пример #1
0
 /** Attaches listeners to the JTable. */
 protected void installListeners() {
   super.installListeners();
   table.addPropertyChangeListener(this);
 }
Пример #2
0
 /** @see javax.swing.plaf.basic.BasicTableUI#uninstallListeners() */
 protected void uninstallListeners() {
   table.removePropertyChangeListener(this);
   super.uninstallListeners();
 }
Пример #3
0
 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));
 }