return false;
}
};
tabvok.getColumn("Status").setCellRenderer(
// Standard-Renderer erweitern
new DefaultTableCellRenderer() {
@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,boolean hasFocus, int row, int column) {
// Label der Oberklasse erweitern
JLabel label = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
// Lediglich Text und Grafik anpassen
if (value != null) {
label.setText("");
label.setIcon((ImageIcon) value);
}
return label;
}
}
);
tabelle = new JScrollPane(tabvok);
tabvok.setSelectionMode( ListSelectionModel.SINGLE_INTERVAL_SELECTION );
tabvok.setColumnSelectionAllowed( false );
tabvok.setRowSelectionAllowed( true );
tabvok.getTableHeader().setReorderingAllowed( false );
tabvok.getTableHeader().setResizingAllowed( true );
}else{
tabvok.setModel(model);
tabvok.getColumn("Status").setCellRenderer(
// Standard-Renderer erweitern
new DefaultTableCellRenderer() {
@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,boolean hasFocus, int row, int column) {
// Label der Oberklasse erweitern
JLabel label = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);