main()
method?
It is a static
method of
the class TestFrame1
The TestFrame1
class is defined
so that there is a place for the main()
main()
When the main()
method executes,
it asks the system to create a JFrame
object (with new
).
The variable frame
refers to that object,
so the object's methods can be called.
If you change frame.setSize(150, 100)
to
frame.setSize(300, 100)
how will the frame appear?