FlatLaf
CLAUDE.md4.3k starsChanged 14 days agoApache-2.0View on GitHub
FlatLaf is a cross-platform Look and Feel for Java Swing. Library code must stay compatible with Java 8 (source/target 1.8), while also running on the latest Java versions. Gradle (Kotlin DSL) with wrapper; use gradlew.bat on Windows. Gradle itself needs a recent JDK (CI uses 21); the code is compiled via toolchains. - Build everything (compile, tests, sigtest check): ./gradlew build - Build/test against a specific Java toolchain (default is 8): ./gradlew build -Dtoolchain=17 - Test one module: ./gradlew :flatlaf-core:test…
Trending
More talk lately.about the whole repository
Who's talking about JFormDesigner/FlatLaf
- apache/netbeans“Update FlatLaf from 0.31 to 1.0-rc1”GitHub · Jan 19, 2021 · 11 reactions
- apache/netbeans“Update FlatLaf from 1.0 to 1.1.1 and added "FlatLaf" options”GitHub · Mar 29, 2021 · 4 reactions
- apache/netbeans“Update FlatLaf from 2.0.1 to 2.1”GitHub · Apr 13, 2022 · 3 reactions
- apache/netbeans“[NETBEANS-3428] FlatLaf: UI delegates for editor and view tabs in main window”GitHub · Dec 11, 2019 · 3 reactions
- apache/netbeans“[NETBEANS-3428] Update FlatLaf from 0.18 to 0.20”GitHub · Nov 29, 2019 · 3 reactions
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub (50 times).
On GitHub · 50
- Jan 19, 2021Update FlatLaf from 0.31 to 1.0-rc1 — apache/netbeans11 reactions · 10 comments
- Mar 29, 2021Update FlatLaf from 1.0 to 1.1.1 and added "FlatLaf" options — apache/netbeans4 reactions · 9 comments
- Apr 13, 2022Update FlatLaf from 2.0.1 to 2.1 — apache/netbeans3 reactions · 1 comment
- Dec 11, 2019[NETBEANS-3428] FlatLaf: UI delegates for editor and view tabs in main window — apache/netbeans3 reactions · 21 comments
- Nov 29, 2019[NETBEANS-3428] Update FlatLaf from 0.18 to 0.20 — apache/netbeans3 reactions · 5 comments
45 more on GitHub
- Aug 29, 2025Add Gradle task to check for dependency updates — processing/processing42 reactions
- Apr 12, 2023Update FlatLaf from 3.0 to 3.1 — apache/netbeans2 reactions · 1 comment
- Jul 14, 2022Update FlatLaf from 2.3 to 2.4 — apache/netbeans2 reactions · 1 comment
- Jun 29, 2022Update FlatLaf from 2.1 to 2.3 — apache/netbeans2 reactions · 5 comments
- Feb 15, 2022Better support for HiDPI screens on Linux — mucommander/mucommander2 reactions · 5 comments
- Jan 19, 2021improve support for modern scaled high-dpi LAFs — bigdataviewer/bigdataviewer-core2 reactions · 8 comments
- Nov 13, 2026Bump the maven-dependencies group across 1 directory with 16 updates — Lob2018/CanScan1 reaction · 1 comment
- Nov 13, 2026Bump com.formdev:flatlaf from 3.7.2 to 3.8 — BatistaCakewalk/Stickies1 reaction · 2 comments
- Nov 13, 2026Bump com.formdev:flatlaf-extras from 3.7.2 to 3.8 — BatistaCakewalk/Stickies1 reaction · 2 comments
- Nov 9, 2026Bump com.formdev:flatlaf from 3.7.2 to 3.8 — zapek/Xeres1 reaction · 2 comments
- Nov 8, 2026Bump com.formdev:flatlaf from 3.7.2 to 3.8 — BatistaCakewalk/Ghostie-Shimeji1 reaction · 2 comments
- Aug 7, 2026Bump com.formdev:flatlaf from 3.4.1 to 3.7.2 — BatistaCakewalk/Stickies1 reaction · 1 comment
- Jul 17, 2026Bump the maven-dependencies group across 1 directory with 9 updates — Lob2018/CanScan1 reaction · 2 comments
- Jul 10, 2026Bump the maven-dependencies group across 1 directory with 6 updates — Lob2018/CanScan1 reaction · 2 comments
- Jan 17, 2026Bump the maven-dependencies group with 12 updates — Lob2018/CanScan1 reaction · 1 comment
- Jan 6, 2026Use ScaledImageIcon from FlatLaF for better scaling of icons — kaikramer/keystore-explorer1 reaction · 2 comments
- Oct 11, 2025Upgrade FlatLaf from 3.6.1 to 3.6.2 — apache/netbeans1 reaction
- Aug 5, 2024Update FlatLaf from 3.5 to 3.5.1 — apache/netbeans1 reaction · 2 comments
- Jan 16, 2023Update FlatLaf from 2.6 to 3.0 and add macOS light and dark themes — apache/netbeans1 reaction · 13 comments
- Sep 24, 2022Provide fallback anti-aliasing for DEs the JRE doesn't recognize — FabricMC/Enigma1 reaction
- Jan 4, 2022Gradle cache increases by 400 MB every time updating Gradle wrapper version — actions/setup-java1 reaction · 18 comments
- Dec 15, 2021Upgrade dependencies — logisim-evolution/logisim-evolution1 reaction · 2 comments
- Dec 5, 2019invalid color in .theme.json file — OlyaB/DarkPurpleTheme1 reaction · 1 comment
- Dec 1, 2026Bump com.formdev:flatlaf from 3.7.2 to 3.8 in the minor-and-patch group — RaphiMC/NoteBlockTool-Desktop0 reactions
- Dec 1, 2026Bump flatlaf.version from 3.7.2 to 3.8 — the-thing/zam0 reactions
- Dec 1, 2026build(deps): bump com.formdev:flatlaf from 3.7.2 to 3.8 — fedex81/helios0 reactions
- Dec 1, 2026Build(deps): Bump the uploader-minor-and-patch group in /uploader with 4 updates — MugundhanG/mcreatik-instant-memories0 reactions · 1 comment
- Dec 1, 2026build(deps): bump com.formdev:flatlaf from 3.7 to 3.8 — Amandadamata/sistema-bancario-java0 reactions
- Nov 30, 2026Bump com.formdev:flatlaf from 3.7.2 to 3.8 — losadgm/delete-later0 reactions
- Nov 26, 2026build(deps): bump flatlaf.version from 3.5.4 to 3.8 — kybiy/Wireless-Device-Battery-Monitor0 reactions · 1 comment
- Nov 14, 2026Bump com.formdev:flatlaf from 3.7.2 to 3.8 — eccentricdevotion/TARDIS0 reactions
- Nov 13, 2026Bump com.formdev:flatlaf from 3.7.2 to 3.8 — sunter697/zhilu-ai-circuit-assistant0 reactions
- Nov 13, 2026Bump com.formdev:flatlaf from 3.7.2 to 3.8 in /Java-Version/Student-GUI-v1 — toxicbishop/Student-Marks-Management0 reactions
- Nov 13, 2026Bump com.formdev:flatlaf from 3.4 to 3.8 in /Java-Version/Student-GUI-v2 — toxicbishop/Student-Marks-Management0 reactions
- Nov 12, 2026Bump com.formdev:flatlaf from 3.7.2 to 3.8 — TripleTheP/mpp-viewer0 reactions
- Nov 12, 2026Bump com.formdev:flatlaf from 3.7.2 to 3.8 — Mastn1kth/logisim0 reactions
- Nov 9, 2026Build(deps): bump com.formdev:flatlaf from 3.7.2 to 3.8 — contiki-ng/cooja0 reactions
- Nov 9, 2026Dependency updates — Alipsa/accounting0 reactions
- Nov 9, 2026chore(deps): bump com.formdev:flatlaf from 3.7.2 to 3.8 — mmlinaric/remote-manager0 reactions
- Nov 9, 2026Bump com.formdev:flatlaf-intellij-themes from 3.7.2 to 3.8 — DevOldSchool/rikr0 reactions
- Nov 9, 2026Bump com.formdev:flatlaf from 3.7.2 to 3.8 — DevOldSchool/rikr0 reactions
- Nov 8, 2026build(deps): bump com.formdev:flatlaf from 3.7.2 to 3.8 — Shterneregen/secure-lan-suite0 reactions
- Jul 20, 2026deps: bump flatlafVersion from 3.7.1 to 3.7.2 — Denomas/freemind-ce0 reactions · 2 comments
- May 6, 2026Libs modernization — jajuk-team/jajuk0 reactions · 2 comments
- Apr 3, 2026Bump the maven-dependencies group with 7 updates — Lob2018/CanScan0 reactions · 2 comments
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Test one module: ./gradlew :flatlaf-core:test
- Very specific: line 18
Run a single test class / method: ./gradlew :flatlaf-core:test --tests com.formdev.flatlaf.ui.TestFlatStyling ./gradlew :flatlaf-core:test …
- Very specific: line 94
Every source file starts with the Apache 2.0 license header (Copyright <year> FormDev Software).
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
FlatLaf is a cross-platform Look and Feel for Java Swing. Library code must stay compatible with Java 8 (source/target 1.8), while also running on the latest Java versions.
Build commands
Gradle (Kotlin DSL) with wrapper; use gradlew.bat on Windows. Gradle itself
needs a recent JDK (CI uses 21); the code is compiled via toolchains.
- Build everything (compile, tests, sigtest check):
./gradlew build - Build/test against a specific Java toolchain (default is 8):
./gradlew build -Dtoolchain=17 - Test one module:
./gradlew :flatlaf-core:test - Run a single test class / method:
./gradlew :flatlaf-core:test --tests com.formdev.flatlaf.ui.TestFlatStyling./gradlew :flatlaf-core:test --tests "com.formdev.flatlaf.ui.TestFlatStyling.<method>" - Static analysis (Error Prone,
-Werror):./gradlew errorprone - Public API signature check:
./gradlew :flatlaf-core:sigtestCheck(part ofcheck). After an intentional public API change incom.formdev.flatlaf,com.formdev.flatlaf.themesorcom.formdev.flatlaf.util, regenerateflatlaf-core/flatlaf-core-sigtest.txtwith./gradlew :flatlaf-core:sigtestGenerate. - Skip publishing font JARs (e.g. when publishing FlatLaf): add
-PskipFonts. Font JARs are still built because demo and other projects depend on them.
Tests use JUnit 5 and exist mainly in flatlaf-core/src/test (plus a few in
other modules).
Modules
flatlaf-core— the LaF itself (artifactflatlaf). Everything else depends on it.flatlaf-extras— SVG icons (FlatSVGIcon), UI inspectors, tri-state checkbox, etc.flatlaf-intellij-themes— bundled 3rd-party IntelliJ.theme.jsonthemes with one generated Java class each. The classes andFlatAllIJThemesare generated byflatlaf-demo/.../intellijthemes/IJThemesClassGenerator.javafromflatlaf-demo/src/main/resources/.../intellijthemes/themes.json.flatlaf-swingx,flatlaf-jide-oss— UI delegates for SwingX / JIDE components.flatlaf-fonts/*— font JARs (Inter, JetBrains Mono, Roboto, Roboto Mono).flatlaf-natives/*— C++ JNI libraries (Windows, macOS, Linux) built with Gradle'scpp-libraryvia thebuild-nativestask; the built binaries are copied intoflatlaf-core/src/main/resources/com/formdev/flatlaf/nativesand committed.flatlaf-natives-jnais development-only.flatlaf-demo— demo app;flatlaf-theme-editor— editor for theme.propertiesfiles.flatlaf-testing— many small manual Swing test apps (not unit tests), plus dump tools whose outputs live inflatlaf-testing/dumps/(e.g.uidefaults/produced byUIDefaultsDump). Those dumps are committed and diffed to review the effect of changes to theme properties/UI defaults.buildSrc— shared convention plugins:flatlaf-toolchain,flatlaf-java9,flatlaf-module-info,flatlaf-publish,flatlaf-cpp-library,flatlaf-jni-headers,flatlaf-sigtest.
Architecture (flatlaf-core)
- Multi-release JAR:
src/main/javais Java 8;src/main/java9contains Java 9+ overrides of some classes (compiled toMETA-INF/versions/9), andsrc/main/module-infoholdsmodule-info.java(compiled separately). When changing a class that has a java9 counterpart, update both. - Theme definition via properties files, not Java code.
FlatLaf.properties(loaded for all themes) plus per-theme files (FlatLightLaf.properties,FlatDarkLaf.properties,FlatIntelliJLaf.properties,FlatDarculaLaf.properties) insrc/main/resources/com/formdev/flatlaf/.UIDefaultsLoaderparses them: variables (@var,$keyreferences), color functions (lighten(),darken(), …), platform/LaF prefixes like[win],[mac],[linux],[light],[dark], and[style].xyzstyle classes. Addons contribute properties viaFlatDefaultsAddon(ServiceLoader). IntelliJ.theme.jsonthemes are mapped onto these defaults byIntelliJTheme(with extra mappings inIntelliJTheme$ThemeLaf.properties). FlatLafis the abstract base LaF; concrete themes (FlatLightLaf, …) are thin subclasses.FlatPropertiesLafloads a theme from a user properties file.- UI delegates in
com.formdev.flatlaf.ui(Flat*UI,Flat*Border) read their values from UI defaults ininstallDefaults(). Fields that are UI-default-driven are documented with@uiDefaultjavadoc tags; client properties with@clientProperty(constants inFlatClientProperties). - Per-component styling: most delegates support the
FlatLaf.style/FlatLaf.styleClassclient properties throughFlatStylingSupport(@Styleablefields,applyStyle,getStyleableInfos). Adding a new UI default to a delegate usually also means making it styleable and updating the styling tests (TestFlatStyling,TestFlatStyleableInfo,TestFlatStyleableValue) andflatlaf-testing/dumps/styleable-infos.txt. - HiDPI scaling goes through
com.formdev.flatlaf.util.UIScale(scale()for sizes); painting helpers are inFlatUIUtils. - Native window decorations / OS integration:
FlatNativeLibrary,FlatNativeWindowsLibrary,FlatWindowsNativeWindowBorder, etc. (JNI headers are generated fromcompileJavaintobuild/generated/jni-headers).
Code style
- Source files are UTF-8 encoded (without BOM), tab indentation, LF line
endings (see
.editorconfig). - Spaces inside parentheses of method calls/declarations and control statements:
if( x != null ),foo( a, b ),void bar( int x ) {. No space before(. - Every source file starts with the Apache 2.0 license header
(
Copyright <year> FormDev Software). - User-visible changes are recorded in
CHANGELOG.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

