The "Save SpreadSheet file" command is causing an
ArrayIndexOutOfBoundsException. This is because the loops that cycle
through the HorizLabels and VertLabels have the variables NumVisX and
NumVisY switched.
They now read:
for (int j=0; j<NumVisY; j++) {
global = global + ' ' + HorizLabel[j].getSize().width;
}
global = global + '\n' +
"rows =";
for (int i=0; i<NumVisX; i++) {
global = global + ' ' + VertLabel[i].getSize().height;
}
They should read:
for (int j=0; j<NumVisX; j++) {
global = global + ' ' + HorizLabel[j].getSize().width;
}
global = global + '\n' +
"rows =";
for (int i=0; i<NumVisY; i++) {
global = global + ' ' + VertLabel[i].getSize().height;
}
john