Question: Write an applet that draws the house shown on the left in Figure 14-33. When the user clicks on the door or windows, they should
Write an applet that draws the house shown on the left in Figure 14-33. When the user clicks on the door or windows, they should close. The figure on the right shows the house with its door and windows closed.
Data in Figure 14-33.

House with door and windows open. House with door and windows closed.
Step by Step Solution
3.40 Rating (162 Votes )
There are 3 Steps involved in it
import javaawt import javaawtevent import javaxswing public class HouseApplet extends JApplet privat... View full answer
Get step-by-step solutions from verified subject matter experts
