I am trying to add the mouse actions to my panel. This is what the program is supposed to do:
Write a program that allows the user to specify a triangle
You have to register the listener object with the Jpanel using the addMouseListener method. More info;
https://docs.oracle.com/javase/7/docs/api/java/awt/event/MouseListener.html
https://docs.oracle.com/javase/tutorial/uiswing/events/mouselistener.html