
-----------------------------------
goober69
Mon Jun 02, 2008 3:30 pm

Problem with layering Icons
-----------------------------------
Hey guys, quick question. I made this little prog that loads numbers from a text file that coorespond with tiles to display on the screen. The program compiles fine, and the tiles are displayed exactly how I want on the screen (using ImageIcon), but when I try and load an image ontop of them (once again using ImageIcon, the image does not display. Funny thing is when I don't display the tiles, the image is displayed, so I think it's being loaded under the tile images :S Any help is appreciated.

import javax.swing.*;
import java.awt.*;
import java.io.*;
public class MAIN{
    public static void MAIN(){
        
        //LOAD THE TILES
        Graphics mario = new Graphics();
        Image[] TILE = new Image[225];
        int cntr = 0;
        try {
        BufferedReader in = new BufferedReader(new FileReader("1.txt"));
        String record = null;
        for(int i = 0;i