public void setpalette() { int ind = colorindices.length; javaColours = new Color[ind]; epsColours = new double[ind][3]; for (int i = 0; i < ind; i++) { System.out.println("color index " + colorindices[i]); javaColours[i] = palette.chooseJavaColour(colorindices[i]); epsColours[i] = palette.chooseEPSColour(colorindices[i]); } }