r/JavaFX • u/jacklackofsurprise • 4d ago
AI Assisted/Generated Editora: a keyboard-driven code editor built on JavaFX 27 and RichTextFX (open source, MIT)
I've been building Editora, an open-source code editor for Linux, macOS and Windows, on JDK 25, JavaFX 27, RichTextFX and AtlantaFX. It has LSP and debugger support for a long list of languages, Git with diff and merge views, Local History, a Markdown preview with math, and a Project Map that lays out your project on a canvas (still in beta). The installers bundle their own runtime, so you don't need a JDK.
A few JavaFX things I ran into along the way:
- I forked RichTextFX to add multiple cursors and column selection. I also forked Flowless, the virtual flow underneath it, because it re-measured every visible line on each layout pass. Fixing that took FX-thread allocation per keystroke from about 7 MB to about 2.4 MB.
- The packaged builds ship a JDK 25 AOT cache, trained against the app image's own runtime. First paint went from about 1.7 s to about 1.0 s on my machine.
- When Prism can't start the GPU pipeline (on Linux, usually after a driver update without a reboot), the whole window lags. Editora now tells you in the status bar and in the Doctor, and turns off menu shadows in that mode, since redrawing the blur on every hover is what made the menus slow.
- The performance tests in CI count frames per keystroke and FX-thread allocations instead of timing things. Counts come out the same on a busy CI runner as on my laptop.
Most of the code is written with Claude Code. I review it and rely on tests and build checks (NullAway, architecture tests, the performance budgets) to catch what I miss. I wrote about that here: https://www.adeleon.dev/blog/editora/
- Website and downloads: https://editora-project.dev
- Source: https://github.com/adriandeleon/Editora
If you try it, I'd like to know how it runs on your setup, especially HiDPI on Windows and rendering on Linux. And if you've used RichTextFX for something big, what problems did you hit?



5
u/d3ep4k 3d ago
I love anything built with javafx, building a code editor is hard. Live editor features are hard.
2
u/PartOfTheBotnet 3d ago
Can you open issues in the upstream repo with descriptions of the problems + possibly a PR for solutions to those?
1
u/john16384 3d ago
What you could check is that richtextfx isn't triggering a parent layout on each character typed. It's a common mistake to call requestLayout when there are no bounds changes but only content changes. If bounds are unchanged just do
setNeedsLayout(true)1
u/Siedlerchr 3d ago
Why not use the new JavaFX richtext incubator instead of the old richtextFX? We have used it at JabRef for a while for displaying and modifying BibTeX entries with few problems. And the maintainer is happy for feedback on the usage.
1
u/eliezerDeveloper 1d ago
Intellij its so big now around 2gb and consumes so much RAM. Your app consumes less RAM? If it does I willl download and test it here.
1
u/eliezerDeveloper 1d ago
Tô gostando demais da sua IDE mano. Ela é muito leve, tô falando em meu idioma agora porque é mais fácil pra mim. Abraços do Brasil.
-3
u/Objective_Pepper_217 3d ago
We already have too many bloated editors... Java is not a suitable choice