<Codesnippet>
.
.
public boolean isCellEditable(int row, int col){
col_selected = table.getSelectedColumn();
row_selected = table.getSelectedRow();
if (((String)getValueAt(row_selected, 11)).equalsIgnoreCase("Y"))
table.setSelectionBackground(Color.red);
else
table.setSelectionBackground(Color.green);
table.revalidate();
if ((col == -1) || (col > getVisibleColumns())) {
return false;
} else {
return true;
}}
.
.
hoffe, das hilft dir weiter
|