table = new JTable();
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
String spalten[] = {"ID", "NAME", "DAUER", "ALTER"};
model = new DefaultTableModel(spalten, 0)
{
public boolean isCellEditable(int row, int col)
{
return false;
}
};
table = new JTable();
table.setModel(model);
String spalten[] = {"ID", "NAME", "DAUER", "ALTER"};
model = new DefaultTableModel(spalten, 0)
{
public boolean isCellEditable(int row, int col)
{
return false;
}
};
table = new JTable();
table.setRowSelectionAllowed(false);
table.setColumnSelectionAllowed(false);
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
table.setModel(model);
table.setCellSelectionEnabled(true);
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
table.setCellSelectionEnabled(true);