I have a canvas containing objects ( which are ludo game
pieces here). For drawing these objects on the screen, they
contain x and y coordinates relative to the convas. What I need is actionListeners on every object, so that its not needed to verify the position of a mouse click, but directly
jump to the actionPerformed method.
This easily done for buttons, menuItems and such but how do I make one for a component?