Program Code
Q1. Debug the following code and write the output of following code.
Source Code:
Output:
Clicking on the close button of this window will
destroy the Frame window
Exercise
Q1. Write a program to demonstrate the use of WindowAdapter class
Source Code:
Output:
Q2. Write a program to demonstrate the use of anonymous inner class
Source Code-
Output:
Q3. Write a program using MouseMotionAdapter class to implement only one method mouseDragged().
Source Code:
Output: