OK, if the mouse isn't actually in the component, that call will return null. For some reason, you're not checking the return value, you're just calling a method on it, so you get a...
Type: Posts; User: dlorde
OK, if the mouse isn't actually in the component, that call will return null. For some reason, you're not checking the return value, you're just calling a method on it, so you get a...
@javapenguin - I still don't see where you're adding a MouseListener to a component. Please explain how you think the MouseListener action methods are going to be called - or is the MouseListener no...
Having said the above, I don't actually see anywhere that you add a MouseListener to a component, so I wouldn't expect any mouse action to be recognized. Of course, that may be part of the code you...
You clearly didn't even try to compile it... and sure enough, it doesn't compile. How do you know it demonstrates the problem if you haven't even compiled it?
You have to understand that it's a...