A window is a retangular area of the computer screen used to display graphics and to hold components for user interactions.
Graphics programs put graphical components inside a window.
Of course, in software the components are software objects.
The class of a window object is JFrame
.
Be careful to include the "J" in JFrame
or you will get
an older component.
A JFrame is a window that has nice borders, buttons along the top border, and other features.
Like all software objects,
a JFrame
object is a section of main memory that holds information and methods.
With the help of the operating system and the graphics board,
Java paints a picture on the computer monitor that represents the frame.
People often speak as if the frame were the actual picture on the monitor.
In fact, what you see on the monitor is just a graphical
representation of the frame.
How would you import all the classes in the javax.swing
package?