This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
In a simple game I'm coding, I need the MouseMotionListener to continue to call MouseMoved and accordingly adjust the rotation of the AffineTransform for my BufferedImage, even when the MouseListener is calling MouseClicked or MouseReleased. While it's calling these (say, I'm holding the mouse key down) it stops listening for motion. Is there a way around this? I tried adding another MouseMotionListener in the MouseClicked method. Still doesn't work. Also tried having it update the image when calling MouseDragged as well. Still nothing.
Any insight would be greatly appreciated.
Don't know if anyone was keeping an eye on this for an answer, but I figured it out.
Basically, the Listeners were not interrupting each other (at least not significantly, to where the human eye could notice). It was just an issue with my MouseListener. I was using mouseClicked instead of mouseReleased for what I needed.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: MouseListener and MouseMotionListener interrupting each other.