Hello Joe2003.
Let your frame or window class implement the MouseListener interface. You will have to implement all the methods of the MouseListener interface. There you will see the mousePressed() and mouseReleased() methods. Add your code there. Remember that you must add the MouseListener to the button, for example:
myButton.addMouseListener(this);
Just ask if you need more detailed help.
