agentleFS
JFormDesignerJFormDesigner/FlatLaf/CLAUDE.md

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

Jan 2026: 2 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 3 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 19 mentionsDec 2026: 5 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the JFormDesigner/FlatLaf repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about JFormDesigner/FlatLaf

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

45 more on GitHub

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
  1. Very specific:

    Test one module: ./gradlew :flatlaf-core:test

    line 17
  2. Very specific:

    Run a single test class / method: ./gradlew :flatlaf-core:test --tests com.formdev.flatlaf.ui.TestFlatStyling ./gradlew :flatlaf-core:test …

    line 18
  3. Very specific:

    Every source file starts with the Apache 2.0 license header (Copyright <year> FormDev Software).

    line 94

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 of check). After an intentional public API change in com.formdev.flatlaf, com.formdev.flatlaf.themes or com.formdev.flatlaf.util, regenerate flatlaf-core/flatlaf-core-sigtest.txt with ./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 (artifact flatlaf). Everything else depends on it.
  • flatlaf-extras — SVG icons (FlatSVGIcon), UI inspectors, tri-state checkbox, etc.
  • flatlaf-intellij-themes — bundled 3rd-party IntelliJ .theme.json themes with one generated Java class each. The classes and FlatAllIJThemes are generated by flatlaf-demo/.../intellijthemes/IJThemesClassGenerator.java from flatlaf-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's cpp-library via the build-natives task; the built binaries are copied into flatlaf-core/src/main/resources/com/formdev/flatlaf/natives and committed. flatlaf-natives-jna is development-only.
  • flatlaf-demo — demo app; flatlaf-theme-editor — editor for theme .properties files.
  • flatlaf-testing — many small manual Swing test apps (not unit tests), plus dump tools whose outputs live in flatlaf-testing/dumps/ (e.g. uidefaults/ produced by UIDefaultsDump). 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/java is Java 8; src/main/java9 contains Java 9+ overrides of some classes (compiled to META-INF/versions/9), and src/main/module-info holds module-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) in src/main/resources/com/formdev/flatlaf/. UIDefaultsLoader parses them: variables (@var, $key references), color functions (lighten(), darken(), …), platform/LaF prefixes like [win], [mac], [linux], [light], [dark], and [style].xyz style classes. Addons contribute properties via FlatDefaultsAddon (ServiceLoader). IntelliJ .theme.json themes are mapped onto these defaults by IntelliJTheme (with extra mappings in IntelliJTheme$ThemeLaf.properties).
  • FlatLaf is the abstract base LaF; concrete themes (FlatLightLaf, …) are thin subclasses. FlatPropertiesLaf loads a theme from a user properties file.
  • UI delegates in com.formdev.flatlaf.ui (Flat*UI, Flat*Border) read their values from UI defaults in installDefaults(). Fields that are UI-default-driven are documented with @uiDefault javadoc tags; client properties with @clientProperty (constants in FlatClientProperties).
  • Per-component styling: most delegates support the FlatLaf.style / FlatLaf.styleClass client properties through FlatStylingSupport (@Styleable fields, applyStyle, getStyleableInfos). Adding a new UI default to a delegate usually also means making it styleable and updating the styling tests (TestFlatStyling, TestFlatStyleableInfo, TestFlatStyleableValue) and flatlaf-testing/dumps/styleable-infos.txt.
  • HiDPI scaling goes through com.formdev.flatlaf.util.UIScale (scale() for sizes); painting helpers are in FlatUIUtils.
  • Native window decorations / OS integration: FlatNativeLibrary, FlatNativeWindowsLibrary, FlatWindowsNativeWindowBorder, etc. (JNI headers are generated from compileJava into build/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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.