Program to understand AWT Button Control in Java