There are dialogs scattered around NetBeans that do not specify a
parent. So when they come up they are on the "default screen", which for
me is typically not the screen with the NetBeans main window. More that
once I've wondered why NB is hung (maybe I'm a little too focused).
There's PR "Check for EnvVar/SysProp for preferred screen",
https://github.com/apache/netbeans/pull/4714 that has some related
discussion.
As a an experiment, there's the hint seen below. Is there a way to run
it on all projects, not just the open projects?
Similar hint can be put together for other situations, escpecially
JOptionPane.show*(parent, ...). This would probably necessitate adding a
lot of dependencies on org.openide.windows.
-ernie
"chooser dialog null":
$jfc.showOpenDialog(null) :: $jfc instanceof javax.swing.JFileChooser
=>
$jfc.showOpenDialog(org.openide.windows.WindowManager.getDefault.getMainWindow)
;;
"chooser dialog null":
$jfc.showSaveDialog(null) :: $jfc instanceof javax.swing.JFileChooser
=>
$jfc.showSaveDialog(org.openide.windows.WindowManager.getDefault.getMainWindow)
;;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists