Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
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
visad
archives: