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.