I want a MouseListener for a JPanel inside a JTabbedPane in a JFrame…
I want it to print something, whenever the mouse is clicked/pressed.
I’ve tried looking around but when I try and implement it I got an error on this line:
public class GUI implements ActionListener, MouseListener
And this is the error:
GUIis not abstract and does not
override abstract methodmouseExited(java.awt.event.MouseEvent)injava.awt.event.MouseListener
What does that mean?
P.S (the JPanel/tab bit I want it in is called: displayMainPanel)
Thanks a lot.
1 Answer