Just wondering what is the best practice way of creating a class that needs to handle mouse clicks and key presses. Obviously it is not possible to inherit multiple classes in Java so at the moment I am using the MouseListener and KeyListener interfaces which means I have to have lots of empty methods in my class to satisfy the interfaces when I actually only need keyReleased and mouseReleased.
If I could use MouseAdapter and KeyAdapter I could get rid of these methods and have cleaner code. So any suggestions on a way to use these classes that isn't messier than what I already have.