Web22 lug 2016 · To create an unowned JDialog you must use either the JDialog(Window) or JDialog(Dialog) constructor with an argument of null. So I simply tried using the … Web所以基本上我正在用Java開發Swing應用程序,並且我有一個列表,用戶可以在其中通過在文本字段中鍵入內容和按鈕 當用戶單擊該按鈕時,將窗口放置並打開新窗口 來添加項目。 在新窗口上,我只有一個按鈕,它將把我帶回到第一個窗口,但是插入列表中的數據被刪除。
java - wait for jdialog to close - Stack Overflow
Web12 feb 2024 · 所有三个将产生windowDeactivated告诉你窗口的丢失的焦点,但dispose ()然后将产生windowClosed,而关闭从操作系统将首先产生windowClosing。 如果你想以同样的方式处理这两个,你可以设置窗口关闭时处理: window.setDefaultCloseOperation (WindowConstants.DISPOSE_ON_CLOSE); 通常,setVisible (false)意味着您可能想再次 … Web21 ott 2011 · DISPOSE_ON_CLOSE - automatically hide and dispose the dialog after invoking any registered WindowListener objects The value is set to HIDE_ON_CLOSE … how big should your tv be
dispose - Java Swing dispose () vs setVisible (false)
WebThen when you tell the dialog to appear it looks for its JFrame (which has been disposed), re-initializes it and opens up. The way to solve your problem is to make a separate new … http://duoduokou.com/java/17097154202444650740.html WebLa façon de résoudre votre problème, c'est de faire une nouvelle JFrame pour le JDialog. Ensuite, ne pas utiliser de disposer et d'utiliser seulement la setVisible commande. -Asaf Il pourrait être juste suffisante pour ne pas faire le cadre, il rouvre ses parent cadre. how big should your tv stand be