JavaFX and Scene Builder Course - IntelliJ #22: How to change stages from inside the controller

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

ความคิดเห็น • 9

  • @9Shiro0o
    @9Shiro0o 5 หลายเดือนก่อน

    Your tutorials are the best so far! Thank you very much! I personally don't like the copy paste here tho and prefer to have a method for that instead. Also the stage being bound to an item, in this case thebutton, feels weid. Is there a way to get around it?

  • @penggunawooijo
    @penggunawooijo 5 หลายเดือนก่อน

    hi can u make the stage changes with stage access implementations from controllers?

  • @stormonthebeat2562
    @stormonthebeat2562 ปีที่แล้ว

    Bro this Code is wow nice one simple am Deus from Uganda thanks for these series

  • @robertfuller4212
    @robertfuller4212 3 ปีที่แล้ว

    How did you create that new controller? I'm guessing you used hot keys to do something. Did you copy the controller and paste a new one into the sample folder?

    • @Randomcode_0
      @Randomcode_0  3 ปีที่แล้ว

      I just copied the first controller and gave it a new name. The most important thing to remember is to make sure the new FXML file is connected to the new controller. The Controller is just a normal class that can be crated like any other controller.

  • @uclehong2605
    @uclehong2605 หลายเดือนก่อน

    why u didn't use show() in controller

  • @Slav_Oak
    @Slav_Oak 2 ปีที่แล้ว

    in idea, everything works fine for me, but the packed jar file does not start and gives a lot of errors. what can affect this?

    • @Randomcode_0
      @Randomcode_0  2 ปีที่แล้ว

      JavaFX is not a part of basic java and therefore needs to be bundled into he Jar somehow, which might be the reason you are having problems. I would suggest looking into something like Maven to help build your jars.