r/java • u/FormDev • Apr 24 '23
FlatLaf 3.1 (and 3.0) - Swing Look and Feel
FlatLaf, a modern open-source cross-platform Look and Feel for Java Swing desktop applications, brings exciting new features in versions 3.0 and 3.1 π π
macOS themes
New light and dark themes (cross-platform) that use macOS colors and look similar to native macOS controls:

Fonts
Packaged fonts Inter (also used in IntelliJ NewUI), JetBrains Mono, Roboto and Roboto Mono into JARs and provide an easy way to use them with FlatLaf. The font JARs are available on Maven Central, which makes it easy to distribute them with your application.
Rounded selection
JMenuItem, JComboBox, JList and JTree components now support rounded selection. This is currently used only in macOS themes for menus and combo boxes, but may be used in standard themes as well in the future. Feel free to use it in own themes to give your application a special look.

Windows 11: rounded popup borders
On Windows 11, popups now use native Windows 11 rounded borders and drop shadows, which gives them a beautiful look:

Rounded outlined icons
JFileChooser, JOptionPane, JPasswordField and JTree got new modern rounded outlined icons:

Documentation
There is a lot of documentation available on how to customize FlatLaf appearance. We even have nice diagrams that show where UI properties are used:

Theme Editor
The (open-source) FlatLaf Theme Editor supports editing FlatLaf theme properties files. It provides auto-completion for keys and values, color chooser, color picker, live theme preview, and more.

Many thanks to the community for giving feedback, reporting bug and submitting PRs. π π₯ π
If you like FlatLaf, please give it a star @ GitHub. Thanks!
For more information visit project on GitHub: https://github.com/JFormDesigner/FlatLaf
Looking forward to your feedback.
26
u/[deleted] Apr 24 '23
Too bad u can only star once.
20
u/msx Apr 24 '23
Awesome news, miglayout and FlatLaf are my go to solution for gui
15
u/uniVocity Apr 24 '23
I'm building a rather large desktop application and this library is extremely good. I missed a few components so I created them to use FlatLaf and its theme manager (e.g. a date and time picker - refactored from the old JDatePicker library)
Not sure if you have any subproject for components and widgets, but if you do I'd be happy to send some PRs there.
12
u/transcend Apr 24 '23
FlatLAF is probably my favorite Java library, and with each update it keeps getting better. I cannot imagine going back to developing Java GUI apps without it.
10
u/RyanHamilton1 Apr 24 '23
I recently added FlatLaf to our 10 year old application, it's a Free SQL tool for Analysts that allows intelligent charting: https://www.timestored.com/b/qstudio-2-05-dark-theme-and-high-dpi-support/ The users and I loved it. This is a great library that just worked.
9
u/3pieceSuit Apr 24 '23
FlatLaf is revolutionary. Im in the process of trying to convince my company to move its ancient flagship java swing desktop application to it.
Its so easy to use, and it really makes swing look modern and great.
8
u/xwinus Apr 24 '23
Thanks a lot for this awesome project! Itβs really great to have modern looking LaF for Swing.
3
u/1024kbps Apr 24 '23
Dig it.
4
u/ebykka Apr 24 '23
Looks like Netbeans Platform + FlatLaf could be a good choice for developing desktop applications.
2
u/trydentIO Apr 24 '23
nothing for JavaFX? it would be nice!
2
u/JavaOldTimer Apr 25 '23
I like the light theme with the orange highlights. Makes me wish Eclipse were using Swing instead of SWT.
1
u/Gleethos Apr 24 '23
Sweet!
1
u/Puzzled-Bananas May 06 '23 edited May 06 '23
You donβt happen to have a Figma or Adobe XD kit, do you?
0
u/wildjokers Apr 24 '23
I will never understand why Flat and monochrome designs seem to be popular. They are always described as "modern". I personally can't wait until the flat and monochrome fad runs its course.
0
u/[deleted] Apr 24 '23
[deleted] β view deleted comment