You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Ernie Rael <er...@raelity.com> on 2022/10/29 18:40:20 UTC

dialogs with null parents and other misplaced dialogs

In NB-16-rc, there's a PR: "Dialog parent should not be null" 
https://github.com/apache/netbeans/pull/4739

Any test/feedback of changed dialogs' behavior, and observations for 
dialogs that are misplaced, appreciated.

Before this change, these dialogs would show up in the center of Java's 
default screen, with this change they typically show up over the 
activated button (mouse click). null should never be used as a dialog 
parent in NetBeans because in a multi-screen environment it often goes 
to the wrong spot. This PR cleans up a subset of the problems, 
specifically with JOptionPane/JFileChooser. Find some of the dialogs at

- Tools > Templates > Add
- Profile > InsertProfilingPoint > Next > Browse
- Options > Editor > Spellchecker > Add > Browse
- get to a file that has attachSources button, click it > AddZip/Folder
   for example, navigate to a library, click on a class file

I still occasionally see dialogs that show up on the default screen. 
They should either be on/around NetBeans' main window or some active 
window. Often times can't replicate the problem.

I've opened a discussion, Dialog placement and misplaced dialog observations
https://github.com/apache/netbeans/discussions/4887, to collect 
information on dialogs that are misplaced or aren't placed very well. 
I'm hoping to address some of them for NB-17. If you come across any 
problems/issues with dialog placement, you're welcome to add a comment 
to this discussion;.

-ernie


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists