eirikbakke commented on code in PR #23:
URL:
https://github.com/apache/netbeans-antora-tutorials/pull/23#discussion_r2471679718
##########
modules/ROOT/images/tutorials/selection-1_nb27_replace3.png:
##########
Review Comment:
If anyone needs instructions for setting the LAF in a platform application,
here is what @neilcsmith-net said in an old mailing list email that I can't
find a link to ("[RCP] Setting Window Dimensions and LAF" on 2022-04-17):
>
> > How do I set the look and feel of the RCP to one of the new Flat LAF?
>
> I'd suggest doing what the IDE itself does, which uses branding but not
the laf property. It's much simpler. See the PR that added this to the IDE,
and my own use of this in an RCP application.
>
> https://github.com/apache/netbeans/pull/3332
>
https://github.com/praxis-live/praxis-live/blob/master/branding/modules/org-netbeans-swing-plaf.jar/org/netbeans/swing/plaf/Bundle.properties
>
> One thing to be aware of, whichever method you use, is that you need a
dependency on org.netbeans.swing.laf.flatlaf in one of your modules to force
the customs to load. It's a bug IMO that that module is set to autoload.
>
Here's how I summarized it myself back then:
> I ended up using Neil's approach for setting the default LAF with the
bundle, adding LookAndFeelClassName=com.formdev.flatlaf.FlatLightLaf to the
branding bundle and adding the following to my NetBeans Platform application
pom.xml file:
>
> <dependency>
> <groupId>org.netbeans.modules</groupId>
> <artifactId>org-netbeans-swing-laf-flatlaf</artifactId>
> <version>${netbeans.version}</version>
> <scope>runtime</scope>
> </dependency>
(I think this is how my own NetBeans Platform does it currently, but I have
a slightly more complicated setup myself now as I also implemented a custom
action for switching between light and dark mode.)
--
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