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