Print at Dec 18, 2025, 7:10:30 AM

Posted by dorin at Jun 23, 2024, 3:47:13 PM
Re: Generate roof plugin
The second one is Nimbus, also out the box LaF under linux.
I've simply add:
-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel
in the bash file for SH3D.
You need to test only on default, the Nimbus is optional.
The axes is there:
roofPreview = new ModelPreviewComponent(true, true, true, true );
at 174 on GenrateRoofPluginView v.4.6

To have a more versatile UI for a plugin we need:
1. to have the necesary informations BEFORE the start of plugin or the UI. Something like this:
for (UIManager.LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(laf.getName())) {
UIManager.setLookAndFeel(laf.getClassName());
//UIManager.getLookAndFeelDefaults().put("Panel.background", Color.white);
//UIManager.getLookAndFeelDefaults().put("Button.contentMargins", new InsetsUIResource(0,0,0,0));
}
}
And probably more.
2. To pack the plugin with all sizes(16, 32, 64) of icons
3. To put cases everywhere it need to use it.
----------------------------------------
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law