FlatLaf - Flat Look and Feel

GitHub stars

FlatLaf is a modern open-source cross-platform Look and Feel for Java Swing desktop applications.

It looks almost flat (no shadows or gradients), clean, simple and elegant. FlatLaf comes with Light, Dark, IntelliJ and Darcula themes, scales on HiDPI displays and runs on Java 8 or newer.

The look is heavily inspired by Darcula and IntelliJ themes from IntelliJ IDEA 2019.2+ and uses almost the same colors and icons.

  • Flat Light
    Flat Light
  • Flat Dark
    Flat Dark
  • Flat Light
    Flat Light
  • Flat Dark
    Flat Dark
  • Flat IntelliJ
    Flat IntelliJ
  • Flat Darcula
    Flat Darcula

Features

  • Light, Dark, IntelliJ and Darcula themes
  • can use 3rd party themes developed for IntelliJ Platform
  • scales on HiDPI displays
  • cross-platform
  • high quality
  • lightweight (about 200 KB; no dependencies)
  • minimalistic, elegant and modern
  • scalable vector icons
  • discreet hover effects
  • focused border
  • customizable
  • right-to-left support
  • runs on Java 8 or newer
  • Java 9 module (module name is com.formdev.flatlaf)
  • GUI builder friendly
  • MigLayout compatible

Demo

Download Demo

Run demo with java -jar flatlaf-demo-<version>.jar (or double-click it). Requires Java 8 or newer.

Download

FlatLaf binaries are available on JCenter and Maven Central.

If you use Maven or Gradle, add a dependency with following coordinates to your build script:

groupId:     com.formdev
artifactId:  flatlaf
version:     0.20

Otherwise download flatlaf-<version>.jar here:

Download

Getting started

To enable FlatLaf, add following code to your main method before you create any Swing component:

FlatLightLaf.install();

// create UI here...

or

try {
    UIManager.setLookAndFeel( new FlatLightLaf() );
} catch( Exception ex ) {
    System.err.println( "Failed to initialize LaF" );
}

// create UI here...

Themes

See Themes page.

License

FlatLaf is open source licensed under the Apache 2.0 License

Source code

The FlatLaf source code is hosted on GitHub:
github.com/JFormDesigner/FlatLaf

Issues

Please report issues on GitHub:
github.com/JFormDesigner/FlatLaf/issues