I want to save the value out of a TextField in an Array. But i think i do something wrong, may someone be so nice and could take a look on my code sniplet ?
//Array
Carl[0]=jNumberFieldAE.getInt();
Carl[1]=jNumberFieldIT.getInt();
Carl[2]=jNumberFieldWIG.getInt();
Carl[3]=jNumberFieldPol.getInt();
Carl[4]=jNumberFieldRel.getInt();
Carl[5]=jNumberFieldE.getInt();
Carl[6]=jNumberFieldDeutsch.getInt();
Carl[7]=jTextFieldName.getText();
Is .getText(); not right ?
JTextField has String as value, so you must parse it to retreive your integer value. Try this code :