Here's my problem: I need to load many images into my gui. I would like to load one gif file that contains an imageMap of all the icons needed, and load one text file that tells me the xy coordinates of all these icons. I then would like to create a seperate image for each icon, and place them in a repository (hashtable). I figured I would save time by only loading one gif file as opposed to 50 to 100 gif files. The less the program needs to access the harddrive the better right?
I can load the file fine, and get the text description ok, but I'm stuck on how to create the seperate images from the one imageMap. Normally, if my class extended Component, then I could just call createImage, but I'm under the impression that this will only work if that component is visible. Besides I'm trying to have a small class here, and I don't need the overhead of Component.
Does anyone have a clue how I would do this??