Yep that worked really well. Applet loads in 1-3 seconds with all the images loaded. AND applet size also reduced by 40 kb. It is now a 140kb jar file. All round success! I produced a 600x650 pixel png file (12 raws by 13 columns 50pixel icons for all the 152 images).Then I loaded sections of the image by the following code which now takes care of cloning issue as well
static void getBufImage (String image_name,BufferedImageOp[] op) {
try {
java.net.URL imageURL = BoardPanel.class.getResource(image_name);
Image image = new ImageIcon(imageURL).getImage();
for(int j = 0;j < 2;j++) {
for(int i = 0;i < 26;i++) {
int x1 = 50 * (i / 12);
int y1 = 50 * (i % 12);
BufferedImage bimage = new BufferedImage(50,50,
BufferedImage.TYPE_INT_ARGB);
Graphics g = bimage.getGraphics();
g.drawImage(image,
0, 0, 50, 50,
x1, y1, x1 + 50, y1 + 50,
null);
g.dispose();
bimage = op[j].filter(bimage, null);
IMAGES.put(i + ((j == 0) ? 'A' : 'a'),bimage);
}
}
} catch (Exception e) {
JavaBoard.printMessage("Error :" + e.getMessage());
}
}
Thank you Norm and Copeg for your help.