M
Mariano
Then, i've a method:
private String[] creaLista(ResultSet cursore, String type)
this return me an array of string.
Now, since i need to use this method many time in my class always with
different parameters, so should be usefull create a new array for this
task.
Then my class is:
============================
// ...
public class Paziente extends javax.swing.JFrame {
private String[] sin;
// ...
private void formWindowOpened(java.awt.event.WindowEvent evt) {
// ...
sin = creaLista(myRs, myType);
// ...
}
// ...
============================
at the my sin array contain only one element sin[0]; if I try to reach
sin I obtain an out of bound exception, also if creaLista() have an
array grater than 1 element.
Who can help me???
private String[] creaLista(ResultSet cursore, String type)
this return me an array of string.
Now, since i need to use this method many time in my class always with
different parameters, so should be usefull create a new array for this
task.
Then my class is:
============================
// ...
public class Paziente extends javax.swing.JFrame {
private String[] sin;
// ...
private void formWindowOpened(java.awt.event.WindowEvent evt) {
// ...
sin = creaLista(myRs, myType);
// ...
}
// ...
============================
at the my sin array contain only one element sin[0]; if I try to reach
sin I obtain an out of bound exception, also if creaLista() have an
array grater than 1 element.
Who can help me???