The code you are showing us is correct! (supposing that you have an mMoved(MouseEvent me); method)
I am thinking that there is something else in the class file where you got the snippet from that is causing your problem. If you have not located your problem at this time it might be better that you show us an entire class that produces the error (compilation error).
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 ]
Life is 10% what happens and 90% how you react to it.
Attitude is everything.