Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants