Hi,
For FlatLAF in a RCP application, this code will work : boolean themeDark = true; String lafClassName = themeDark ? "com.formdev.flatlaf.FlatDarkLaf" : "com.formdev.flatlaf.FlatLightLaf"; NbPreferences.root().node( "laf" ).put( "laf", lafClassName); // Restart the application in order to apply the change LifecycleManager.getDefault().markForRestart(); LifecycleManager.getDefault().exit(); Marc De : Eirik Bakke <eba...@ultorg.com> Envoyé : samedi 9 avril 2022 02:19 À : Amith, Muhammad F <muhammad.f.am...@uth.tmc.edu>; users@netbeans.apache.org Objet : RE: [RCP] Setting Window Dimensions and LAF 1) From a module installer class, something like this: @Override public void restored() { WindowManager.getDefault().invokeWhenUIReady(() -> { Frame mainWindow = WindowManager.getDefault().getMainWindow(); mainWindow.setExtendedState(mainWindow.getExtendedState() | JFrame.MAXIMIZED_BOTH); } } 2) In my own RCP app, I added the line laf=com.formdev.flatlaf.FlatLightLaf to platform/config/Preferences/laf.properties in the distributed platform application's directory. Though this doesn't work when running the app from the IDE during development... let me know if you find a better way. -- Eirik From: Amith, Muhammad F <muhammad.f.am...@uth.tmc.edu <mailto:muhammad.f.am...@uth.tmc.edu> > Sent: Friday, April 8, 2022 8:28 PM To: users@netbeans.apache.org <mailto:users@netbeans.apache.org> Subject: [RCP] Setting Window Dimensions and LAF Hi, I am working on a RCP-based Netbeans project (v13, Maven-based build). I am trying to find how to do the following: 1. How do I set up the initial windows dimension of the RCP app? 2. How do I set the look and feel of the RCP to one of the new Flat LAF?