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...


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.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here