See this: Chapter*8.*Classes
Also ask a Search engine.
Type: Posts; User: Norm
See this: Chapter*8.*Classes
Also ask a Search engine.
If it needs to be static then there is probably something wrong with your design.
Mouse motion listeners work. What is wrong with the code you are working on?
Can you make a small, complete program that compiles, executes and shows the problem?
Look at using a mouse motion listener.