r/JavaFX • • Apr 26 '25

I made this! BentoFX: A docking system for JavaFX

https://github.com/Col-E/BentoFX
30 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/winian Apr 26 '25

You've opened all packages for reflection (which can also be done with "open module bento.fx {}"). But this doesn't export anything. So you need to replace all the "opens" instructions with "exports", and optionally enable reflection to all packages with open module.

This is my biggest annoyance with JPMS, it's not possible to export everything easily. Too opinionated imo, if I wanted to do that I should be able to. It's a very common use case, especially in smaller modules.

Might also make the change to require jakarta.annotation with requires static, that way it's optional and the module system doesn't throw a fit if its not present.

2

u/PartOfTheBotnet Apr 26 '25

Ah I was wondering if it were possible to make things optional.

I tried the open module bento.fx {} statement but it wasn't taking it. Just did the stupid copy+paste+replace instead.