private void jButton1ActionP erformed(java.a wt.event.Action Event evt) {
String Temp = jComboBox1.getS electedItem().t oString();
testcomm.TestFo rm.WriteParamToPic("c"+Temp);
}
public static void WriteParamToPic (String ParamIn)
{
char [] WriteParam = new char[4];
byte [] FinalWriteParam = new byte[4];
WriteParam = ParamIn.toCharA rray();
for(int i=0; i<4; i++){
FinalWriteParam[i] = (byte) WriteParam[i];
Comm.PutPointer Data(FinalWrite Param,4);
}
}
I have:
jComboBox1.setM odel(new javax.swing.Def aultComboBoxMod el(new String[] {"30", "50" }));
i get nex error:
java.lang.Array IndexOutOfBound sException
Hove must i configure argument for WriteParamToPic ?
I have trayed to change number of arrays in WriteParamToPic, but it returns me other errors.
Thank you
Comment