JavaFX Java GUI Tutorial - 32 - Controllers in FXML

Поділитися
Вставка
  • Опубліковано 10 жов 2024
  • Source Code: github.com/the...
    Core Deployment Guide (AWS): docs.google.co...

КОМЕНТАРІ • 43

  • @kyrilcouda
    @kyrilcouda 7 років тому +60

    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
      @FirstCelestialEmperor 5 років тому +12

      i swear this channel is going to save my computer science degree

    • @Selbstdenkender
      @Selbstdenkender 5 років тому +1

      same to me lol :) Finally someone. Thank you!

    • @CasualWatcher279
      @CasualWatcher279 4 роки тому +1

      @@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!

  • @juanvinicius1520
    @juanvinicius1520 8 років тому +27

    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.

    • @lucasalbaniere8295
      @lucasalbaniere8295 2 роки тому

      Sim, mano. É muito difícil encontrar material completo assim na internet, principalmente em português

  • @andrewturner2291
    @andrewturner2291 5 років тому +2

    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!

  • @luckyone525
    @luckyone525 3 роки тому

    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!

  • @joshuashava6589
    @joshuashava6589 3 роки тому

    Finally I understand. I appreciate you fam👏🏼👏🏼All the way from Zimbabwe 🇿🇼

  • @abcdde3274
    @abcdde3274 8 років тому +5

    Hi Bucky! Thank you so much for your tutorial. I'm from Indonesia and your tutorial has been really helpful. Thanks :)).

  • @bellezahairandmakeupartist3901
    @bellezahairandmakeupartist3901 5 років тому

    You are still the my main instructor!! I really love what you do.

  • @Faxtro1
    @Faxtro1 6 років тому +1

    What a baller. Thanks for the vids, bucky.

  • @drax3787
    @drax3787 5 років тому

    Thank you so much, finally someone who explained this such a messy thing! Appreciate that man!

  • @yuliiateterkobobrytska8481
    @yuliiateterkobobrytska8481 4 місяці тому

    Thanks a lot! Your videos are extremely helpful!🤩🤩🤩

  • @mithunchandrasaha403
    @mithunchandrasaha403 3 роки тому

    Nice Explanation.Sir

  • @buddylegge5331
    @buddylegge5331 7 років тому +1

    Favorite shortcut in intellij , sout .. Will handle system.out.println for you

  • @sejalbabar3562
    @sejalbabar3562 3 роки тому +1

    you should create a playlist for this

  • @meshchek
    @meshchek 7 місяців тому

    U r the GOAT.

  • @thecoolzsham
    @thecoolzsham 8 років тому

    Simple and well explained. Thank you so much !!

  • @sweetShadow93
    @sweetShadow93 6 років тому

    Just what I was looking for, thank you!

  • @spiritothawk
    @spiritothawk 3 роки тому

    This is really nice! Thank you.

  • @Victor92NeaSanta
    @Victor92NeaSanta 7 років тому +4

    Do the controller class elements need to be public for the fxml file to see them?

  • @TheKeyToMusicOfficial
    @TheKeyToMusicOfficial 4 роки тому

    Well said

  • @marikt1
    @marikt1 7 років тому

    Thanks for great tutorial!

  • @clancyemanuel5867
    @clancyemanuel5867 8 років тому

    Very helpful, thanks.

  • @chetanpawar678
    @chetanpawar678 3 роки тому

    thanks

  • @RobertMunteanu105
    @RobertMunteanu105 7 років тому

    I love you man !

  • @_erayerdin
    @_erayerdin 8 років тому

    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? :/

  • @bentibaali6327
    @bentibaali6327 3 роки тому

    شكرا يا ابن بسكرة

  • @omareliotorrescastillo4808
    @omareliotorrescastillo4808 3 роки тому

    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

  • @firekiller9424
    @firekiller9424 9 років тому

    Where did you study coding/programming or are you self thought

  • @alouanewailzineddine6186
    @alouanewailzineddine6186 4 роки тому

    i have problem when i add onAction methodes the programme don't run

  • @hiteshsharma5948
    @hiteshsharma5948 4 роки тому

    what mean by these links:
    xmlns="javafx.com/javafx/8" xmlns:fx="javafx.com/fxml"

  • @muliisakenneth4762
    @muliisakenneth4762 4 роки тому

    How do you link the GUI to the main program?

  • @szpeto1111
    @szpeto1111 5 років тому

    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

  • @orkoteg09
    @orkoteg09 7 років тому +2

    @FXML
    public Button button

  • @erfahnhaghighi3820
    @erfahnhaghighi3820 5 років тому

    how do you switch scenes in the controller using the method you used?

    • @ap-pv7ug
      @ap-pv7ug 4 роки тому

      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.

  • @Billywong
    @Billywong 6 років тому

    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.

    • @ap-pv7ug
      @ap-pv7ug 4 роки тому

      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.

  • @makjunior4558
    @makjunior4558 6 років тому

    it's almost same as javascript and html