I only have time to theorize here, but one thought would be to add a mouselistener to the red vertex on the fly. In other words, when the user clicks R, add the mouselistener to the red vertex object and have it listen for mouse events on itself. The red vertext object of course would have to...