JFrame
In Java Swing, JFrame is a top-level window that provides a window with a title bar, borders, and standard window controls. It is part of the javax.swing package and serves as a primary top-level container for building graphical user interfaces.
JFrame extends java.awt.Frame and contains a JRootPane which holds a layered pane, a content pane for application
Common operations include setTitle, pack, setSize, setResizable, setLocationRelativeTo, and setVisible. The frame also supports setDefaultCloseOperation with
Lifecycle: after construction, the frame is configured, then made visible by setVisible(true). Closing the frame disposes