Ingo Kegel 343451de65 Make the module dependency on java.logging optional
Currently, FlatLaf has the following module dependencies:

$ jdeps --list-deps --multi-release 9 flatlaf-1.0.jar
   java.base
   java.desktop
   java.logging

This commit makes the java.logging dependency optional and hides logging behind a facade that falls back to printing to stderr if the java.logging module is not available.

To test, create a reduced JRE with a command like

jdk-15/bin/jlink.exe --module-path jdk-15/jmods --add-modules java.desktop --add-modules java.instrument --output jre-15-desktop-only

(adding java.instrument, so the FlatLafDemo main class can be started from IntelliJ IDEA)
2021-03-05 16:44:08 +01:00
2021-02-06 11:35:35 +01:00
2019-08-19 14:07:09 +02:00
2021-02-13 13:42:04 +01:00
2020-09-23 18:42:12 +02:00
2020-09-23 18:42:12 +02:00
2019-08-19 12:27:06 +02:00

FlatLaf - Flat Look and Feel

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 Dark

IntelliJ Platform Themes

FlatLaf can use 3rd party themes created for IntelliJ Platform (see IntelliJ Themes Pack):

IntelliJ Platform Themes

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 Maven Central.

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

groupId:     com.formdev
artifactId:  flatlaf
version:     (see button below)

Otherwise download flatlaf-<version>.jar here:

Maven Central

Snapshots

FlatLaf snapshot binaries are available on Sonatype OSSRH. To access the latest snapshot, change the FlatLaf version in your dependencies to <version>-SNAPSHOT (e.g. 0.27-SNAPSHOT) and add the repository https://oss.sonatype.org/content/repositories/snapshots/ to your build (see Maven and Gradle docs).

Addons

Getting started

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

FlatLightLaf.install();

// create UI here...

Documentation

For more information and documentation visit FlatLaf Home:

Buzz

Applications using FlatLaf

Description
FlatLaf - Swing Look and Feel (with Darcula/IntelliJ themes support)
Readme Apache-2.0 23 MiB
Languages
Java 96.9%
C++ 2%
Objective-C++ 0.9%
Objective-C 0.1%