CDbleU opened a new issue, #9346: URL: https://github.com/apache/netbeans/issues/9346
### Apache NetBeans version Apache NetBeans 29 ### What happened I am switching roles with `WindowManager.getDefault().setRole()`. When coming back to a previous role, everything is restored correctly, until I set the option `NB.WinSys.WinSys.Show.Hide.MainWindow.While.Switching.Role` to `false`. In this case floating TopComponents are reopened, but appear at position 0/0 with size 0/0. My expectation is, that this flag changes the behavior of the main window when switching roles, but not the behavior of the role-switch itself. So even with the flag set to `false` all TopComponents of the role should be restored correctly. ### Language / Project Type / NetBeans Component Java Maven Project ### How to reproduce I have written a reproducer: https://gitlab.com/cdbleu_projects/nb_roleswitch_reproducer The Reproducer contains a README wich contains furhter information on how to use the reproducer and what exactly happpens. ### Did this work correctly in an earlier version? No / Don't know ### Operating System WIndows 11 and Linux (RHEL 9) ### JDK JDK 25 (could also reproduce it with JDK 21) ### Apache NetBeans packaging Apache NetBeans platform ### Anything else The problem can be reproduced very reliably (100% ;) ). It can also be reproduced with NetBeans 28 (I didn't try it with earlier versions.) As I don't know exactly what the problem it (and whether there might be some intended behavior included) I can't take care of a pull request. ### Are you willing to submit a pull request? No -- 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
