1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question GUI Questions

Discussion in 'Developer Support' started by Scourge, Sep 27, 2015.

  1. Scourge

    Joined:
    Jun 7, 2015
    Messages:
    100
    Likes Received:
    16
    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.
    [​IMG]

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

    Code (Text):
    1.  
    2. 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?
    [​IMG]
    --- Double Post Merged, Sep 27, 2015, Original Post Date: Sep 26, 2015 ---
    any1 kno
     

Share This Page

Loading...