This applets uses the OpenGL GL_SELECT render mode to respond to mouse clicks. The size of the selected item is animated to show that it is selected. The program is a variation of the example from Section 3.5. The source code can be found in It uses a new scene node class, which manages the name stack that is used for selection.