How to click on DrawableRectangle?

I just create line with DrawableRectangle , and i want to click on it ... but i dont know how ...

 

pls help

thanks :D

It's a Component like any other, so you can attach a mouse listener.