Moving mouse listener to JPanel class

I command you: jump !