How to get macOS Mojave Style Dark Mode in Java in a Swing Application?

Tags: , ,

I want to know if there is some way to get macOS Mojave style Dark Mode in a swing application in Java?

I want to get macOS Mojave Style Dark Mode on a JFrame in a Java Swing Application.

Please let me know.


Asrar Bashir Sunge


I guess, you might give it a try to use Darcula:

import com.bulenkov.darcula.*;
BasicLookAndFeel darculaLookAndFeel = new DarculaLaf();
try {
} catch (UnsupportedLookAndFeelException ex) {
  // ups!

enter image description here

Source: stackoverflow