updated button1
updated button1
Final Output:
Methods and its description:
• Void addActionListener(ActionListener l) - The action listener is
added to receive action events from this button.
• String getLabel() - Retrieves the label of this button.
• Protected String paramString() - Returns a string that represents
the status of this Button.
• Void setLabel(String label) - Sets the button’s label to be the
specified string.