|
|
@ -205,17 +205,17 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
|
new Object[][] { |
|
|
|
}, |
|
|
|
new String[] { |
|
|
|
"Name" |
|
|
|
"Name", "Kosten" |
|
|
|
} |
|
|
|
) { |
|
|
|
Class[] columnTypes = new Class[] { |
|
|
|
String.class |
|
|
|
String.class, Integer.class |
|
|
|
}; |
|
|
|
public Class getColumnClass(int columnIndex) { |
|
|
|
return columnTypes[columnIndex]; |
|
|
|
} |
|
|
|
public boolean[] columnEditables = new boolean[] { |
|
|
|
false |
|
|
|
boolean[] columnEditables = new boolean[] { |
|
|
|
false, true |
|
|
|
}; |
|
|
|
public boolean isCellEditable(int row, int column) { |
|
|
|
return columnEditables[column]; |
|
|
|