set row height

cusax-fix
Yana Stamcheva 20 years ago
parent fb14f5b4b1
commit 162cc3db16

@ -123,6 +123,7 @@ private void tableInit(){
pps, protocolLabel});
}
accountsTable.setRowHeight(22);
accountsTable.setModel(tableModel);
accountsTable.getColumnModel().getColumn(0).sizeWidthToFit();
@ -135,7 +136,9 @@ private void tableInit(){
}
public void addCheckBoxCellListener(CellEditorListener l) {
accountsTable.getCellEditor(0, 0).addCellEditorListener(l);
if(accountsTable.getModel().getRowCount() != 0) {
accountsTable.getCellEditor(0, 0).addCellEditorListener(l);
}
}
/**

@ -117,6 +117,7 @@ private void initGroupsTable(){
groupsTable.setModel(tableModel);
groupsTable.setRowHeight(22);
groupsTable.getColumnModel().getColumn(0).sizeWidthToFit();
groupsTable.getColumnModel().getColumn(1)
.setCellRenderer(new LabelTableCellRenderer());

Loading…
Cancel
Save