You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Patrik Karlström <pa...@trixon.se> on 2020/08/18 14:11:23 UTC

[FlatLAF] Glitches without splash

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.

Can you reproduce this?
If so, I'll go ahead and register in jira.

/Patrik

Re: [FlatLAF] Glitches without splash

Posted by Matthias Bläsing <mb...@doppel-helix.eu>.
Hi,

Am Dienstag, den 18.08.2020, 19:35 +0200 schrieb Patrik Karlström:
> Thanks,
> filed at https://issues.apache.org/jira/browse/NETBEANS-4723
> 

if someone whats to have a look at this, it might be worth to try
running with the substance laf:

https://github.com/kirill-grouchnikov/radiance/blob/master/docs/substance/substance.md

I tried it in the past and failed because at that time substance
enforced correct threading. Correct in this case means that interaction
with Swing components has to happen on the EDT. That invariant is
broken by netbeans - if I remember correctly the menu generation code
had some strange threading behaviour.

Greetings

Matthias


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

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




Re: [FlatLAF] Glitches without splash

Posted by Patrik Karlström <pa...@trixon.se>.
Thanks,
filed at https://issues.apache.org/jira/browse/NETBEANS-4723


Den tis 18 aug. 2020 kl 18:51 skrev Laszlo Kishalmi <
laszlo.kishalmi@gmail.com>:

> Confirmed.
>
>
> On 8/18/20 7:11 AM, Patrik Karlström wrote:
> > 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.
> >
> > Can you reproduce this?
> > If so, I'll go ahead and register in jira.
> >
> > /Patrik
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: [FlatLAF] Glitches without splash

Posted by Neil C Smith <ne...@apache.org>.
On Tue, 18 Aug 2020 at 17:50, Laszlo Kishalmi <la...@gmail.com> wrote:
> Confirmed.

Ah, yes, confirmed++  Saw this last week while testing an AppImage but
forgot to follow up and check outside of that.

Best wishes,

Neil

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

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




Re: [FlatLAF] Glitches without splash

Posted by Laszlo Kishalmi <la...@gmail.com>.
Confirmed.


On 8/18/20 7:11 AM, Patrik Karlström wrote:
> 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.
>
> Can you reproduce this?
> If so, I'll go ahead and register in jira.
>
> /Patrik
>

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

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




Re: [FlatLAF] Glitches without splash

Posted by Karl Tauber <ka...@jformdesigner.com>.
Hi,

yes, can reproduce this and debugged it:

FlatLaf uses java.util.ServiceLoader.load() (in FlatLaf.getDefaults()) 
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?

Any ideas?

Karl


On 18.08.2020 16:11, Patrik Karlström wrote:
> 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.
> 
> Can you reproduce this?
> If so, I'll go ahead and register in jira.
> 
> /Patrik
> 

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

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