将
JPanel
(或JComponent
)与背景图片放到BorderLayout.CENTER
,然后将其JPanel
填满整个Jframe
区域,其余部分则JComponents
放到此JPanel
there are Jpanels on all sides (North, East ,...). In the Jpanels there are Jlabels and Jbuttons mostly.
这些
JComponents覆盖了所有可
Rectangle用于的内容
Jframe,那么
BackgroundImage(从我的第一点开始)就永远不会
JComponents消失,因为它们是on_top
Jframe,也可以隐藏起来
Image,
- 添加
JPanel with Background Image
(从我的第一个点),然后把有另一种JPanel(s)
用JPanel#setOpaque(false);
,那么这JPanel
将是透明的,通知JPanel
已在默认情况下实施FlowLayout



