I don't get it; I'm using the DefaultTableModel, and my attempt was this to get the value in a tabel as an int:
Integer.parseInt( tableModel.getValueAt(i, 1) );
Eclipse is saying there is a cast needed from Object to String, so eclipse makes that:
Integer.parseInt( (String) tableModel.getValueAt(i, 1) );
At runtime, the program crashes because it is not possible to cast "int to string". Why? I expected "object -> string -> int".
.toString()DefaultTableModeland a complete stack trace of any error you encounter. Otherwise respondents can only speculate.