I finally got it to work by adding "cnb.org.netbeans.swing.laf.flatlaf" and
"cnb.org.netbeans.swing.plaf" to the "Required Tokens" in
the "Libraries" section of the module implementing the UI.
Regards
Thomas
Am 14.10.24 um 15:43 schrieb Peter Kirkham:
I am using Ant and Flatlaf with an RCP application. Haven't had the issue that you
describe. I have those three modules enabled -- but also have all the other modules under
"Platform" enabled. One of the tricks I've found when things are showing up in
the RCP is to enable everything and then work back by disabling modules to see what the
critical module needed is.
I can confirm that I don't have anything special in layer.xml.
In my Installer.java file I have the following validate() method:
@Override
public void validate() {
// Set the look and feel to the FlatLightLaf look and feel
NbPreferences.root().node("laf").put("laf",
FlatLightLaf.class.getName());
}
I'm not using the branding approach as per the discussion thread that you
linked.
If you're using Flatlaf and Scalable Vector Graphics you might also consider
adding the Flatlaf extras library so that you can use the FlatSVGIcon. I've
found that Flatlaf and SVG together makes for a very clean and professional
appearance.
Best regards,
Peter
On 14/10/2024 5:15 pm, avaluedcusto...@freenet.de wrote:
I have a NetBeans Platform application (migrated all the way from 8.x to 23) and I
wanted to provide the option to set FlatLaf as the look & feel (mainly for
Linux).
I have included "FlatLaf", "Flatlaf Look and Feel" and "Look & Feel Customization Library"
in the RCP main application, but when I open the options dialog, only the built-in Look & Feel classes are shown in the
drop down and the "FlatLaf" tab is missing completely.
I can set it as the default L&F through the application branding (see
https://github.com/apache/netbeans/discussions/5921#discussioncomment-5846499) but
it still doesn't show up as a selectable option and the tab to configure FlatLaf
doesn't show up either
What am I missing? Do I need to add something to the layer.xml to make it
appear?
The project uses Ant (not Maven)
Regards
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists