Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListMenu not working on JDK 11 #1342

Open
Toumani opened this issue Sep 25, 2021 · 3 comments
Open

ListMenu not working on JDK 11 #1342

Toumani opened this issue Sep 25, 2021 · 3 comments

Comments

@Toumani
Copy link

Toumani commented Sep 25, 2021

Hello, I am finding issues using ListMenu. Here's my code :

class SidebarView : View() {
    override val root = hbox {
        text("Planies")
        listmenu(theme = "blue") {
            item(text = "Accueil") {
                activeItem = this
                whenSelected {  }
            }
            item(text = "Projets")
            item(text = "Calendrier")
            item(text = "Transactions")
            item(text = "Quitter")
        }
    }
}

I got the following error :
java.lang.reflect.InaccessibleObjectException: Unable to make protected javafx.collections.ObservableList javafx.scene.Parent.getChildren() accessible: module javafx.graphics does not "opens javafx.scene" to unnamed module @33e214c3
When I delete the item's the app runs well. What is going wrong with the ListMenu ?

@SchweinchenFuntik
Copy link
Contributor

Write a version of Tornadofx, kotlin, JVM, JavaFX

@Toumani
Copy link
Author

Toumani commented Oct 10, 2021

TornadoFX : 1.7.20
Kotlin : 1.4.32
JVM : openjdk version "11.0.11"
JavaFX : 11

@SchweinchenFuntik
Copy link
Contributor

sorry for not answering earlier.

For java 11+ you need to use Tornadofx2-SNAPSHOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants