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
I'm not super familiar with Swing. As a new programmer, I've only worked with JavaFX.
However you have no reference to the MouseListener anywhere in your program. You probably forget to instantiate it.