Finally someone in the whole ******* internet told me how to tie the controller to the fxml file... I read the oracle documentation, but it was so unclear and no one was talking about it there... many thanks
@@FirstCelestialEmperor Same man! I swear none of my lectures covered things as easily as this did. Heck, I don't think any of my lectures coveded what he covers here!
I'm brazilian and i came here to thank you, because your tutorial helps me very much. I don't speak english very well, but thank's to collaborate with us your knowledge.
I just wanted to thank you for your clear explanations! I've been struggling to find good tutorials on JavaFX because they all either assume you know a bunch of stuff already or want you to use a bunch of extra libraries and complicate things. Thanks for keeping it simple!
My mentor is using fxml and every tutorial on youtube is writing javafx in a different way or using builder, when i went to get more info to make stuff a bit clearer to me, it made such a confusion.. Until i saw your tutorial, great stuff man love your work!
I wonder if I use a function in Controller class that has multithreading (gets data from a server and updates it), will it wait for function to finish (which will probably cause freezing, maybe) or just start the function and return to scene? :/
Hello, thanks for your video, i have a question, i am not using "package" at first line of java files, i am compiling since command line, how to can call a controlle in the xml file fx:controller =??? , if i put the name of the controller java file i get an error
Hello, can someone explain me please, how to control the stage from the controller class? I want to create a ConfirmBox, but after setting the boolean answer to whether close the stage or not, so after clicking the yes or no i want to close the stage that is waiting for answer, but i can't do it, even if i create a global stage instance right in the class outside of method...thank you
Objects are pass by reference, you if you pass the primary stage as a parameter in a void method located in the Controller class, you could call its setScene() method from there, since the parameter will be an alias of the original stage.
I tried to compile the code but I have got the following error: Caused by: java.lang.NoClassDefFoundError: sample/Main (wrong name: Main) Does anyone have the same problem.
I know this is a couple of years late, but you might want to check to make sure that the Main class is in the right package. If the Main class is just called Main, but it is being referenced as sample.Main, you are going to encounter that error. For practice purposes, since I don't intend to share any of the code, I usually just move everything out of their packages, and delete those directories.
Finally someone in the whole ******* internet told me how to tie the controller to the fxml file...
I read the oracle documentation, but it was so unclear and no one was talking about it there... many thanks
i swear this channel is going to save my computer science degree
same to me lol :) Finally someone. Thank you!
@@FirstCelestialEmperor Same man! I swear none of my lectures covered things as easily as this did. Heck, I don't think any of my lectures coveded what he covers here!
I'm brazilian and i came here to thank you, because your tutorial helps me very much. I don't speak english very well, but thank's to collaborate with us your knowledge.
Sim, mano. É muito difícil encontrar material completo assim na internet, principalmente em português
I just wanted to thank you for your clear explanations! I've been struggling to find good tutorials on JavaFX because they all either assume you know a bunch of stuff already or want you to use a bunch of extra libraries and complicate things. Thanks for keeping it simple!
My mentor is using fxml and every tutorial on youtube is writing javafx in a different way or using builder, when i went to get more info to make stuff a bit clearer to me, it made such a confusion.. Until i saw your tutorial, great stuff man love your work!
Finally I understand. I appreciate you fam👏🏼👏🏼All the way from Zimbabwe 🇿🇼
Hi Bucky! Thank you so much for your tutorial. I'm from Indonesia and your tutorial has been really helpful. Thanks :)).
You are still the my main instructor!! I really love what you do.
What a baller. Thanks for the vids, bucky.
Thank you so much, finally someone who explained this such a messy thing! Appreciate that man!
Thanks a lot! Your videos are extremely helpful!🤩🤩🤩
Nice Explanation.Sir
Favorite shortcut in intellij , sout .. Will handle system.out.println for you
you should create a playlist for this
U r the GOAT.
Simple and well explained. Thank you so much !!
Just what I was looking for, thank you!
This is really nice! Thank you.
Do the controller class elements need to be public for the fxml file to see them?
Well said
Thanks for great tutorial!
Very helpful, thanks.
thanks
I love you man !
I wonder if I use a function in Controller class that has multithreading (gets data from a server and updates it), will it wait for function to finish (which will probably cause freezing, maybe) or just start the function and return to scene? :/
شكرا يا ابن بسكرة
Hello, thanks for your video, i have a question, i am not using "package" at first line of java files, i am compiling since command line, how to can call a controlle in the xml file fx:controller =??? , if i put the name of the controller java file i get an error
Where did you study coding/programming or are you self thought
i have problem when i add onAction methodes the programme don't run
what mean by these links:
xmlns="javafx.com/javafx/8" xmlns:fx="javafx.com/fxml"
How do you link the GUI to the main program?
Hello, can someone explain me please, how to control the stage from the controller class? I want to create a ConfirmBox, but after setting the boolean answer to whether close the stage or not, so after clicking the yes or no i want to close the stage that is waiting for answer, but i can't do it, even if i create a global stage instance right in the class outside of method...thank you
@FXML
public Button button
how do you switch scenes in the controller using the method you used?
Objects are pass by reference, you if you pass the primary stage as a parameter in a void method located in the Controller class, you could call its setScene() method from there, since the parameter will be an alias of the original stage.
I tried to compile the code but I have got the following error:
Caused by: java.lang.NoClassDefFoundError: sample/Main (wrong name: Main)
Does anyone have the same problem.
I know this is a couple of years late, but you might want to check to make sure that the Main class is in the right package. If the Main class is just called Main, but it is being referenced as sample.Main, you are going to encounter that error. For practice purposes, since I don't intend to share any of the code, I usually just move everything out of their packages, and delete those directories.
it's almost same as javascript and html