1
嘛对话框不能很好ontoped,如果我们已经onToped JFrame
onToped的JFrame打开的JDialog =超过JFrame的
this.setAlwaysOnTop(true);
,然后在这种情况下JDialog
开放JDialog
private void colorChooseMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
ColorDialog fc = new ColorDialog();
fc.setLocationRelativeTo(this);
fc.setModal(true);
fc.setVisible(true);
}
将是 '下' JFrame
。当我点击框架时,对话框移到顶部。如果我关闭对话框(处理关闭)并再次打开它开始正常工作,并显示在JFrame
发生了什么?