예제 #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
파일: BaseTableUI.java 프로젝트: vyloy/lnvc
 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));
 }