First off, my apologies on the name thing.
I still haven't been able to find the problem. I'm posting the class below this. I don't know how much this explanation will help, but maybe the more info I give you guys, the more you can help: I'm making a platform game that uses a
string array to store the level. Each cell of the level has an object, and a color, stored in the following format: "object-r.g.b" All the confusing code in the 'paint' event is decoding each cell and drawing it. The other methods are probably self explanatory, but let me know if clarification is needed. By the way, this code is not for the game itself, it's for a component of the level editor. This panel is to be shown inside a JScrollPane.
The bolded text is where the error occurs:
Anybody see anything I didn't?
[ July 25, 2007: Message edited by: Derek Boring ]