Forum » Programiranje » [Java]ArrayIndexOutOfBoundsException
[Java]ArrayIndexOutOfBoundsException
pr2501 ::
Sem pisal tudi na druge forume, pa upam da mi ne zamerate, ker sem pustil kar v Angleščini.
I have:
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] {"30", "50" }));
i get nex error:
java.lang.ArrayIndexOutOfBoundsException
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
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String Temp = jComboBox1.getSelectedItem().toString();
testcomm.TestForm.WriteParamToPic("c"+Temp);
}
public static void WriteParamToPic(String ParamIn)
{
char [] WriteParam = new char[4];
byte [] FinalWriteParam = new byte[4];
WriteParam = ParamIn.toCharArray();
for(int i=0; i<4; i++){
FinalWriteParam[i] = (byte) WriteParam[i];
Comm.PutPointerData(FinalWriteParam,4);
}
}
I have:
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] {"30", "50" }));
i get nex error:
java.lang.ArrayIndexOutOfBoundsException
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
konec
- spremenil: Senitel ()
Vredno ogleda ...
| Tema | Ogledi | Zadnje sporočilo | |
|---|---|---|---|
| Tema | Ogledi | Zadnje sporočilo | |
| » | [JAVA] HTTPS clientOddelek: Programiranje | 3316 (2046) | peterv6i |
| » | C in funkcije ter #defineOddelek: Programiranje | 4227 (2588) | misek |
| » | [c] Enaki datotekiOddelek: Programiranje | 1148 (1008) | Spura |
| » | [java ali C] Datoteka v obliki 0 in 1Oddelek: Programiranje | 1974 (1694) | Mmm'Aah |
| » | branje byte[] iz MS access-ove bazeOddelek: Programiranje | 2090 (2000) | BHawk |