r/JavaFX

Weaverbird: A real example of plugin management
▲ 8 r/JavaFX

Weaverbird: A real example of plugin management

https://reddit.com/link/1thyw7d/video/iiu22gsdh52h1/player

Recently, we introduced Weaverbird - a framework for working with dynamic plugins. In this post, we want to show a real example of how it can be used. The GUI is build on top of TabShell.

The main idea is that a plugin configuration is represented as an XML file. When the application is distributed, it already contains predefined plugin configurations (at the same time, users can add their own plugins). A configuration contains module definitions, repositories used to download them, plugin metadata, and other related information.

Using a plugin consists of two steps:

  • Install - download all required modules from repositories.
  • Activate - create a ModuleLayer containing the plugin modules and start module activators.

Weaverbird uses the JPMS as its module system - the native Java modularity solution that provides stroing plugin isolation, package access control, dependency integrity and related capabilities. That's why plugins remain isolated, predictable, and safe to load dynamically.

reddit.com
u/Striking_Creme864 — 3 days ago
▲ 25 r/JavaFX

Built a 100% offline PDF utility app using Java 25, JavaFX and AtlantaFX (GPLv3)

Hi everyone! For the past 5 months, I’ve been spending my free time building LibrePDF, a fast PDF manipulator with minimal dependencies.

To clear the air right away and explain the philosophy behind it: LibrePDF is focused on 100% privacy. It makes zero HTTP calls, everything stays locally on your machine, and it doesn't even support logging. I was sick and tired of uploading my personal data to cloud giants (like iLovePDF, Smallpdf, etc.) or relying on sketchy closed-source freeware.

This is an example of merge.

Right now, it supports 8 operations. You have the usual suspects:

  • Merge & Split
  • Protect & Unlock
  • PDF to JPG conversion
  • Flatten

But also a couple of features I haven't really seen in similar lightweight projects:

  • Metadata Cleaner: strips away hidden metadata from the file.
  • PDF Info: lets you see crucial file details (if unencrypted) like author, page count, and whether it contains JavaScript or not.

Under the hood, it runs on Java 25, and the UI is built with JavaFX and the AtlantaFX theme (which provides a really nice palette). Honestly? I've always considered myself completely blind when it comes to front-end development, and JavaFX seriously tested my mental sanity.

Currently, I support Windows and Linux, excluding macOS (though nothing stops you from building it yourself <3). You can grab the portable binaries from the GitHub release tab—the zipped files are around 55/60MB and ready to run.

I’d love it if some of you could test it out and give me some feedback, good or bad. If this tool stops even just one person from uploading sensitive documents to sketchy servers, it’ll be the best reward for these 5 months of work.

You can find the code, binaries, and more info here: GitHub Repo

  • PS: As stated in the README, AI usage was kept to an absolute minimum. When used, it was never blind copy-pasting—I spent hours manually reviewing and testing every single line. I won't stress this point further.
  • PS 2: I don't have any tech-savvy friends interested in trying this out 🙃, so I have absolutely no idea about the UX. It's likely very unpolished.
  • PS 3: Initially, the window sizes were hardcoded. I switched to relative proportions, but I have no clue how it renders on 2K or 4K monitors. Let me know if everything blows up!
reddit.com
u/Ilmetallaro — 4 days ago
▲ 6 r/JavaFX+1 crossposts

Where can I learn more about FXGL?

I'm a student currently learning Java and SQL.

I want to use FXGL (Which is not included in the course) in my project to make a simple 2D RPG game. Although I am familiar with and have written a few projects using JavaFX, I have no knowledge of FXGL. If there are any, I would like to know some places I can learn about FXGL as a beginner.

And also, which version of FXGL is the most stable? I'm currently using 21.1 in combination with JDK 21 but I can't find some built in functions. Grateful for your help!

reddit.com
u/alias007TwT — 10 days ago
▲ 24 r/JavaFX

JavaFX dynamic JAR based plugin system

The idea is pretty straightforward: users can upload their own JARs, and the app will load them at runtime thanks to java's serviceloader. It also connects to a remote repo to browse and display plugin information.

It's still a work in progress, but I'm really curious about what people think of this system. Any feedback would be appreciated!

if your curious by chance: https://github.com/KSaifStack/DockTask

u/youseenthiswrong — 11 days ago
▲ 10 r/JavaFX

I mage GhosttyFX, it's a JavaFX terminal that uses libghostty

Just wanted to share a project I made, a terminal view that uses Canvas for rendering.

github.com
u/vlaaad — 12 days ago