G
Gast
Gast
Servus!
Wer kann mir sagen wie man aus einem Object einen int macht und diesen einer variable zuweist?
Wer kann mir sagen wie man aus einem Object einen int macht und diesen einer variable zuweist?
int value = Integer.parseInt( text );
else if(e.getActionCommand().equals("Löschen"))
{
if(table.getSelectedRows() != null & table.getSelectedColumns() != null)
{
for(int n = 0; n < table.getRowCount(); n++)
{
if(table.getSelectedRow() == n)
{
namen2 = (String)table.getValueAt(n, 0);
dauer2 = Integer.parseInt(namen2);
id2 = table.getSelectedRow();
model.removeRow(n);
if(n < table.getRowCount())
{
for(int a = id2; a < table.getRowCount(); a++)
{
table.setValueAt(new Integer(dauer2).toString(), a, 0);
dauer2 = Integer.parseInt(namen2) + 1;
}
}
}
}
System.out.println("ButtonAction: "+e.getActionCommand());
}
}
Anonymous hat gesagt.:Beni der sagt getInt() gibts nicht, wieso will der das nicht?