JTF > Demo Gallery > acm.program > StoplightGraphics

 
This program illustrates how to add buttons to the border of a GraphicsProgram. In this example, the buttons send the appropriate message to the Stoplight object in the middle of the display.