You will want some to retrieve some sort of Shape that represents your objects to test the clicking.
in Pseudo-code


public void mousePressed(MouseEvent e){
Shape shape =...