http://pastebin.java-gaming.org/1b083489a4710
Above is the working code (apart from the parts I can’t test) , for the creation of a button that is drawn using (g.drawImage(but.getSprite(), but.getX(), but.getY(), null) in a different class.
The issue I’m having is setting an area for MouseListener to activate. To what I have read, for MouseListener to work, I need to have a JComponent attached to my Button class. Do I need to put something like a JLabel onto my class to give my button mouse input or is there a better way?