[英]How to put JDesktopPane in background in JFrame
i'm developing a java application in which i have a JFrame with a JDesktopPane
in full screen size. 我正在开发一个java应用程序,其中我有一个全屏尺寸的JDesktopPane
的JFrame。 My problem is that JDesktopPane
cover the JButton(s)
inside the JFrame so i can't click on JButton(s)
. 我的问题是JDesktopPane
覆盖了JFrame中的JButton(s)
,因此我无法点击JButton(s)
。 I add JDesktopPane
to my JFrame
in this way: 我以这种方式将JDesktopPane
添加到我的JFrame
:
jDesktopPane1 = new JDesktopPane();
jDesktopPane1.setSize(Toolkit.getDefaultToolkit().getScreenSize());
jDesktopPane1.setOpaque(false);
How can i disable JDesktopPane
when i don't need to use it? 当我不需要使用它时,如何禁用JDesktopPane
?
I think that you have to check 我想你必须检查一下
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.