C
Chris Lawson
Hi,
I am trying to add an actionListener to a Rectangle2D.Double class.
What i wish to accomplish is to have small square shapes on the screen
that can call a method when clicked. I don't want any writing in them,
when i tried doing this with a button object the buttons wouldn't show
up on the screen unless they had text asigned to them.
Is there a way to add an actionListener to the Rectangle2D.Double
class. I'm guessing that i will need to make a new class and extend
some other class. Not to sure though.
Any help would be greatly appreciated.
Kind Regards
I am trying to add an actionListener to a Rectangle2D.Double class.
What i wish to accomplish is to have small square shapes on the screen
that can call a method when clicked. I don't want any writing in them,
when i tried doing this with a button object the buttons wouldn't show
up on the screen unless they had text asigned to them.
Is there a way to add an actionListener to the Rectangle2D.Double
class. I'm guessing that i will need to make a new class and extend
some other class. Not to sure though.
Any help would be greatly appreciated.
Kind Regards