How to use mousePressed with mouseX and mouseY?

Do you mean, click one object with the mouse and then draw a new screen with only that clicked object, not all six?