In the example application, the main window extends JFrame.
在这个例子应用中,主窗口继承了JFrame。
Frame() . Display a GUI component in a Frame or JFrame.
在一个面板中显示一个GUI组件。
As you may know, you don't add things directly to a JFrame, but instead to its content panel.
您可能知道,并不直接向 JFrame 添加组件,而是将组件添加到它的内容面板。

词典释义: