A good answer might be:No---the listeners are registered with their respective components just as before. It does not matter that one of the components (the button) is now contained inside of a panel. |
Example OutputHere is how the GUI now looks:
|
QUESTION 16:If the user clicks on the DoIt! button before entering data into the text fields, what happens? Click Here after you have answered the question |