Regina, this code works (but I dont like hardcoding the folder name)
public void getimages() {
String path = "
file:////f:/towers/";
String fullpath="";
int z = 0;
String suffix=".gif";
String suits[] = { "h", "d", "s", "c" };
String cards[] = { "a", "2", "3", "4", "5", "6", "7", "8", "9", "t",
"j", "q", "k" };
try {
fullpath = path.concat("b"+suffix);
gifs[z] = getImage(new URL(fullpath));
fullpath = path.concat("j"+suffix);
gifs[53] = getImage(new URL(fullpath));
for (int x = 0; x < 4; x++) {
for (int y = 0; y < 13; y++) {
z++;
fullpath = path.concat(cards[y]).concat(suits[x]).concat(suffix);
gifs[z] = getImage(new URL(fullpath));
}
}
} catch (Exception MalformedURLexception) {
System.out.println("MalformedURLexception");
}
}