controlsfx / controlsfx

High quality UI controls to complement the core JavaFX distribution
https://controlsfx.org
BSD 3-Clause "New" or "Revised" License
1.57k stars 269 forks source link

Use AutoCompletionBinding in a non-modular project #1307

Open treimers opened 4 years ago

treimers commented 4 years ago

Hello all,

I am trying to use AutoCompletionBinding for a ComboBox in a Java project that I want to port from Java 8 to a non-modular Java 15 project.

I found this issue 1167 and the link to the documentation.

In the documentation section Understanding exceptions there is a description what must be provided on invocation for non-modular Java projects:

Therefore, to fix the exception we need to open the package to module "ALL-UNNAMED".
--add-opens=javafx.controls/javafx.scene.control.skin=ALL-UNNAMED

Below in the section Controls or API a description for the AutoCompletionBinding can be found:

AutoCompletionBinding
--add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls

I think this instruction is for modular Java projects, right?

What must be done in order to use it in a non-modular Java projects? Maybe it is something like

--add-exports=javafx.base/com.sun.javafx.event=ALL-UNNAMED

Thanks in advance Thorsten

danielpeintner commented 4 years ago

I created a Java11 test project a while ago...

Please take a look at build.gradle. Hope this helps.