Sebastian Posted November 22, 2015 Author Share Posted November 22, 2015 (edited) Looks very sweet! Very useful and understandable. Only thing is: i got 3 errors. 1. treeSelector 2. CustomIntInTheMainClass 3. m.start Edit: fixed nr2 and 3. Just needed to add: public int CustomIntInTheMainClass; public boolean start; In my main class. EDIT EDIT: Fixed nr1 too. I think. EDIT EDIT EDIT: Nope, didn't fix nr1. Edited November 22, 2015 by OSRS Sebastian Quote Link to comment Share on other sites More sharing options...
Deceiver Posted November 22, 2015 Share Posted November 22, 2015 JavaFX is NOT the same as Swing (JFrame), idk why vilikus did not understand that? learn swing first as it is way easier than javafx. Quote Link to comment Share on other sites More sharing options...
Vilius Posted November 22, 2015 Share Posted November 22, 2015 (edited) Looks very sweet! Very useful and understandable. Only thing is: i got 3 errors. 1. treeSelector 2. CustomIntInTheMainClass 3. m.start Edit: fixed nr2 and 3. Just needed to add: public int CustomIntInTheMainClass; public boolean start; In my main class. EDIT EDIT: Fixed nr1 too. I think. EDIT EDIT EDIT: Nope, didn't fix nr1. I made some mistakes in the paste and didn't explain it fairly well to you: fixed the paste: http://pastebin.com/KErmtQ5k in your Main class add: public int CustomIntInTheMainClass = 0; public String YourStringInTheMainClass = " "; public boolean start = false; JavaFX is NOT the same as Swing (JFrame), idk why vilikus did not understand that? learn swing first as it is way easier than javafx. Yeah my bad, didn't see that he was using javafx Edited November 22, 2015 by Viliuks Quote Link to comment Share on other sites More sharing options...
Apaec Posted November 22, 2015 Share Posted November 22, 2015 firstly, you want to be using swing not jfx Secondly, if you have eclipse, there's a really handy tool called 'WindowBuilder Pro' which is a plugin - http://www.eclipse.org/windowbuilder/download.php If you install that, it will make your life 5x easier! (if you use an IDE other than eclipse, i'm sure there's an equivalent!) apa 2 Quote Link to comment Share on other sites More sharing options...
Sebastian Posted November 22, 2015 Author Share Posted November 22, 2015 (edited) firstly, you want to be using swing not jfx Secondly, if you have eclipse, there's a really handy tool called 'WindowBuilder Pro' which is a plugin - http://www.eclipse.org/windowbuilder/download.php If you install that, it will make your life 5x easier! (if you use an IDE other than eclipse, i'm sure there's an equivalent!) apa I have Eclipse. For my own record: WindowBuilder is Java Swing? JavaFX is NOT the same as Swing (JFrame), idk why vilikus did not understand that? learn swing first as it is way easier than javafx. Thanks for the tip. Will be digging deeper in the JFrame! I made some mistakes in the paste and didn't explain it fairly well to you: fixed the paste: http://pastebin.com/KErmtQ5k in your Main class add: public int CustomIntInTheMainClass = 0; public String YourStringInTheMainClass = " "; public boolean start = false; Yeah my bad, didn't see that he was using javafx Thanks boss! This works like a charm. I'm about to study it! Will let you know when i finished my GUI! Edited November 22, 2015 by OSRS Sebastian Quote Link to comment Share on other sites More sharing options...
Vilius Posted November 22, 2015 Share Posted November 22, 2015 firstly, you want to be using swing not jfx Secondly, if you have eclipse, there's a really handy tool called 'WindowBuilder Pro' which is a plugin - http://www.eclipse.org/windowbuilder/download.php If you install that, it will make your life 5x easier! (if you use an IDE other than eclipse, i'm sure there's an equivalent!) apa There is a stand alone builder called "JFormDesigner" except it requires payments but you can get a free trial. Thanks for the tip. Will be digging deeper in the JFrame! Thanks boss! This works like a charm. I'm about to study it! Will let you know when i finished my GUI! If you gots more questions feel free to ask and look at Apeacs post. Quote Link to comment Share on other sites More sharing options...