我正在创建一个Swing应用程序。我有一个主JFrame和一个JDesktopPane。我在主框架上加了一个按钮和一个标签。但是如果我打开主框架上的任何JInternalFrame,按钮和标签覆盖了内部框架。
(JButton__and JLabel显示JInternalFrame__的前景)。(); //Creates a new JDesktopPane.on JDesktopPane.JLabel label1
我想使用SwingBuilder来管理视图/模型绑定和一些高级图形用户界面任务(如JDesktopPane和JInternalFrame),但在JFrame中设计的内容由WindowBuilder管理。textLabel = new JLabel("Click the button!")JButton button = new JButton("Click Me");gr
我创建了类NewProject扩展JInternalFrame。然后,我创建了名为"NEW“的New...Action,本地化在”文件“菜单中。我将代码NewProject p = new NewProject(); p.setVisible(true);放到操作的ActionPerformed方法中。JInternalFrame f = new JInternalFrame(); f.setVisible(true);
JDesktopP