Swing Note

时间:2023-03-09 20:16:52
Swing Note

2.
Swing容器:
内容窗格、分层窗格、玻璃窗格和一个可选的菜单条。(这四个同时包含在根窗格里)(请分别向其中添加组件)
内部框架、面板.

Swing Note 

内容窗格:
Container contentPane = swingContainer.getContentPane();
contentPane.setLayout(new SomeLayout());
contentPane.add(new SomeComponent());

玻璃窗格:
用于在某个 已经包含有一些组件的区域上 进行描绘.
也可以用来捕捉鼠标操作,因为它位于内容窗格和菜单条之上.
getGlassPane();
菜单条:
getJMenuBar();
分层窗格:
Z-order positioning:(Integer)深度值大的组件位于深度值小的组件之上.(位于这些层上的组件可以相互重叠)
JLayeredPane(extends JComponent)

Swing Note 

内部框架:
常用于在程序中初始化一个新的任务。
面板:
常用来组合小程序或框架某个区域的若干组件。
缺省情况下,支持双缓冲,并且设置成流式布局结构。
卡片式窗格:
扩展了JComponent类。

1.

the relationships between the classes that use root panes

Swing Note

Swing Note 

Swing NoteSwing Note

Swing NoteSwing Note