Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question GUI Questions

Joined
Jun 7, 2015
Messages
100
So, I followed SupremeLeader's guide for starting JavaFX for GUIs. I can easily follow most of it besides:

IntelliJ is throwing errors at the following variables, but when I remove one, the following method below them throws errors.
I know the variables are not declared in the method above them.
1ehXycE.png


As well, I've always had a bit of trouble with variable definition through GUIs. Sorry that sounds a bit confusing;

Code:
cooker.setFish(fishSelect.getSelectionModel().getSelectedItem());

How would I set this in my main (cooker) class?
I made a temporary method that returns null just so I wouldn't have to see this easy error fix.
How would I 'grab' the selected fish from the comboBox from the GUI class to set it?
isX9gEY.png

 
any1 kno
 
Top