- Thread Author
- #1
I am really new to this JavaFX and I've been following a couple tutorials, I finally made my GUI and was able to load it up. The next step would be handling events which I have no idea how it works. I kind of get the idea on how it works, but I'm not too sure how you would properly add an event.
I'm using this tutorial ---> Tutorial - JavaFX for Beginners
But that only explains how the button event is handled.
I have a combo box of tree types and another combo box with tree locations. I'm trying to make it where if the user selects a tree, there will be limited options of locations on where they can cut.
So for example if someone selects Oak Tree then location combo box has only 3 options of locations. Or if someone selects Normal Tree there are 5 options of locations.
Does anyone know a way of implementing the events to the combo boxes?
I'm using this tutorial ---> Tutorial - JavaFX for Beginners
But that only explains how the button event is handled.
I have a combo box of tree types and another combo box with tree locations. I'm trying to make it where if the user selects a tree, there will be limited options of locations on where they can cut.
So for example if someone selects Oak Tree then location combo box has only 3 options of locations. Or if someone selects Normal Tree there are 5 options of locations.
Does anyone know a way of implementing the events to the combo boxes?