1. Write a Java statement to create a button containing the text “Cancel.”
2. After consulting the documentation for the class JButton, write a Java statement to create a button containing the icon in the file cncl.ico.
3. Suppose you create three buttons in a panel. The text in those buttons consists of the strings "Button 1", "Button 2", and "Button 3". Define a private inner class for the panel that determines which of the three buttons has been clicked.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here