DevCharly commented on issue #6587: URL: https://github.com/apache/netbeans/issues/6587#issuecomment-1773802287
> cc @DevCharly any idea what FlatLaf is doing differently with popups that might cause this? Yes, FlatLaf always uses so-called heavy-weight popups (`JWindow`) to get that nice drop-shadow for all popups (menus, tooltips, combobox lists, etc). Other Lafs use light-weight popups (`JPanel`) as long as the popup fits into the owner window. Otherwise they also use heavy-weight popups. So this issue also occurs in Metal or GTK Laf if the NB "document list" popup does not fit into the NB main window. > This change in the JDK looks like it might be a culprit? [openjdk/jdk@3d550f7](https://github.com/openjdk/jdk/commit/3d550f748521443dc2e148aa4f786060419f1113) Yes, this is the cause. I've debugged it. The popup `JWindow` gains focus, therefore the main window looses focus and the [popup is hidden](https://github.com/openjdk/jdk/commit/3d550f748521443dc2e148aa4f786060419f1113#diff-06394e306da8bd8cd5afb8887820511ffd26a05cbabb6aabedc92301f02f76ddR503-R511). This is a regression in JDK 21. So why do other popups (menu, tooltips, etc) work in NB with Java 21? Because they do not receive focus. The NB "document list" popup internally uses a `JTable` and for keyboard navigation is seems that the focus is transferred to the table. I'm working on a fix/hack for FlatLaf that removes that bad window focus listener 😒 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- 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
