在一个JFrame里打开一个JDialog对话框,请问怎样确保JDialog始终在JFrame上面?
谢谢!
JDialog(Dialog owner, boolean modal)
Creates a modal or non-modal dialog without a title and with the specified owner dialog
JDialog jDialog = new JDialog(parent, true); parent为父窗口