In your app branding resources folder create a file "laf.properties": laf=com.formdev.flatlaf.FlatLightLaf
in the same folder create or edit the "layer.xml" file: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" http://www.netbeans.org/dtds/filesystem-1_2.dtd> <filesystem> <folder name="Preferences"> <file name="laf.properties" url="laf.properties"/> </folder> </filesystem> The app branding folder is something like that: [RCP_APP_ROOT]\branding\src\main\resources\[path]\branding Tip: usually you can run your app, configure it as you like and then copy the preferences files/content from: [RCP_APP_ROOT]\application\target\userdir\config And recreate the same folder/file structure inside the "layer.xml". HTH From: Eirik Bakke <eba...@ultorg.com> Sent: sabato 9 aprile 2022 02:19 To: Amith, Muhammad F <muhammad.f.am...@uth.tmc.edu>; users@netbeans.apache.org Subject: 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?