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 <[email protected]>
Sent: Friday, April 8, 2022 8:28 PM
To: [email protected]
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?