NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
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: