This is posted here instead of the Swing forum because I think it's not specific to Swing. I am attempting to add the jars for a 3rd party Look and Feel (Swing) to my project. I get an exception when running (below). I suspect I've imported the jars incorrectly or in a way which is incomplete.
Instructions say, "First you will need to download one of the newest releases or add a Maven dependency to your project as shown above. If you are not using Maven - don't forget to download all dependencies mentioned in release notes. Once you have all necessary binaries attached to your project you can to install WebLaF by simply calling WebLookAndFeel.install () or using one of standard Swing UIManager methods for installing L&F:"
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
Does "download one of the newest releases" suggest installing anything else outside of importing the jars? There is also "Source code (zip)" and "Source code (tar.gz)" listed at the bottom of the list of WebLAF jars, but these seem to contain the original dependencies along with some other stuff. I don't know what this stuff is, and I don't see any explicit mention that I use any of this in my installation.
Please tell us how you're running the application. If you're running from console, show us the entire command. If you're running from an IDE, show us a screenshot that displays all the dependencies you've added to your project.
We can help you to get it running in your current project setup, but please note that you might want to invest some time to learn Maven, because this is exactly the type of stuff it was designed to handle for you, and ideally every project you write in Java is a Maven project.
Okay, the problem is not caused by your dependencies. It's because the WebLookAndFeel is trying to access pre-installed default settings, which are not installed unless you first set a different look and feel, such as the system look and feel. However, an easier way to install the WebLookAndFeel is to just call its install() method. Here is an example I quickly whipped up: