button class Button class: This class is used to create the command button, which is used to initiate the particular action. The constructors of the Button class: a) Button() b) Button(String s) Button() : This constructor is used to create the command button with not caption on it( caption is the information which is displayed over the command button) Button(String s): This constructor is used to create the command button with s as a caption on it. Methods: 1. setLabel()This method is used to set the information which we want to display over the command button i.e. its caption The general form of the method is , void setLabel(String s) where , ...
FOR EVERY PROGRAMMER SOME SPECIAL PROGRAMS WITH THEORY.