我正在创建一个自定义 JDialog。我需要隐藏 JDialog(不将其从内存中删除),以便其父级可以调用 JDialog 上的方法(getResults())。
JDialog dialog = new JDialog(.....);
///Code WITHIN JDialog:
{
//JDialog opens and its actions are performed
this.setVisible(false); //Does this allow the parent to gain focus once more?
}