Answer:
Yes. It inherits all this behavior from JFrame.
You don't have to write anything to get this behavior.
End of Chapter
You have reached the end of the chapter. If you are in the right Frame of mind, you may wish to review the following:
- Frames in Java.
-
The
setSize()method ofJFrame -
The
setDefaultCloseOperation()method ofJFrame -
The
setBounds()method. -
Extending the
JFrameclass.
The next chapter will discuss how to add buttons to the JFrame.