You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Karl Tauber (Jira)" <ji...@apache.org> on 2020/08/23 08:58:00 UTC

[jira] [Commented] (NETBEANS-4723) [FlatLaF] Graphical glitch with --nosplash

    [ https://issues.apache.org/jira/browse/NETBEANS-4723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17182634#comment-17182634 ] 

Karl Tauber commented on NETBEANS-4723:
---------------------------------------

FlatLaf uses {{java.util.ServiceLoader.load()}} (in [FlatLaf.getDefaults()|https://github.com/JFormDesigner/FlatLaf/blob/d134c3349951ce263f47bd341cc1718c27a2042f/flatlaf-core/src/main/java/com/formdev/flatlaf/FlatLaf.java#L276]) to load a service from the "FlatLaf Look and Feel" module, which adds NetBeans specific UI defaults.

{{ServiceLoader.load()}} uses the context class loader of the current thread to locate the service. The current thread is "AWT-EventQueue-0" when FlatLaf is initialized, independent of whether splash screen is shown or not.

Loading service works with splash screen because at this time the AWT thread context class loader is {{ModuleManager$SystemClassLoader}}, which finds the service in the module.

But with {{--nosplash}}, the AWT thread context class loader is {{MainImpl$BootClassLoader}}, which does not find the service because it does not know modules.

So why is the AWT thread context class loader not yet set when using {{--nosplash}}?

> [FlatLaF] Graphical glitch with --nosplash
> ------------------------------------------
>
>                 Key: NETBEANS-4723
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4723
>             Project: NetBeans
>          Issue Type: Bug
>          Components: FlatLaf, ide - UI
>            Reporter: Patrik Karlström
>            Priority: Major
>         Attachments: Screenshot_20200818_192802.png, Screenshot_20200818_192917.png
>
>
> Starting a platform application, the IDE included, with the --nosplash argument makes the application look a bit off, true for both FlatLaF Dark & Light.
>  
> From what I can tell, this is only visible with FlatLaf.
>  
> Confirmed on the mailing list
> [https://lists.apache.org/thread.html/r8d5e5501a32ef70cc09c21d730d62919adb14663c5a8ed0d3efb7534%40%3Cdev.netbeans.apache.org%3E]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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