Pack the frame
After adding the button,
the program calls the
pack
method on the frame
to cause the size of the frame to be automatically adjusted
to accommodate both
the
Picture
object that constitutes the background, and
the
JButton
object.
File: ar.htm
[Next]
[Prev]