How can I use a custom Look & Feel theme in Netbeans?

Can I download the L&F java theme and use it in netbeans?

for example, use one of the following topics: http://geeknizer.com/best-java-swing-look-and-feel-themes-professional-casual-top-10/

I tried these instructions, but it looks old: http://javahowto.blogspot.in/2008/05/how-to-customize-netbeans-look-and-feel.html

Using netBeans 7.2

UPDATE:

this command works: ./netbeans --cp:p /home/fra/Desktop/jgoodies-looks-2.4.2/jgoodies-looks-2.4.2.jar --cp:p /home/fra/Desktop/jgoodies-looks-2.4.2/lib/jgoodies-common-1.2.1.jar --laf com.jgoodies.looks.plastic.PlasticLookAndFeel

+4
source share
1 answer

You need to use the flag. You can check here for more information. And to go to some predefined LaF:

Available topics

  • Metal: Also known as "Cross Platform Look And Feel" or "Ocean theme". A regular Java image is the default. This class is part of the Java Runtime as javax.swing.plaf.metal.MetalLookAndFeel .
  • Nimbus: Modern life based on Synth. This class is part of the Java Runtime 6u10 as com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel .
  • Native: Also known as "System Look And Feel". These classes are part of the Java Runtime as com.sun.java.swing.plaf.windows.WindowsLookAndFeel (MS Windows) or com.sun.java.swing.plaf.gtk.GTKLookAndFeel (Linux) or com.sun.java.swing.plaf.mac.MacLookAndFeel (Mac OS) depending on the operating system used (see also UIManager.getSystemLookAndFeelClassName() ).
  • Motive: Classic Laf. This class is part of the Java Runtime as com.sun.java.swing.plaf.motif.MotifLookAndFeel .
  • ... or select a third-party bag, such as a substance, cloth, synthetics, TinyLaF, JGoodies Plastic and many others. Please note that NetBeans is not tested regularly with alternative / third-party realities. Different implementations may or may not work.

To use themes

  • Decide which view you want to see (see the list above) and remember its class name ().
  • If it is a third-party widget, load the JAR file containing the custom laf () classes.
  • Start NetBeans from the command line with the following options (see examples below):
  • If this is a third-party widget, put the JAR in the classpath using the --cp:p <jar_path> startup --cp:p <jar_path> .
  • Select laf using the --laf <laf_class> start-up option. When NetBeans starts up, you should notice a different look. If not, check for typos.
  • If you like the theme, make your own launch options permanent.
+5
source

Source: https://habr.com/ru/post/1438128/


All Articles