JavaFX install Scene Builder 🛠️

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

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

  • @BroCodez
    @BroCodez  4 ปีที่แล้ว +11

    Download:
    00:00:21
    Eclipse:
    00:01:50
    IntelliJ: 00:06:27
    gluonhq.com/products/scene-builder/#download
    ---------------------------------------
    Download Scene Builder
    ---------------------------------------
    1. google: javafx scene builder
    2. gluonhq.com
    3. download for your machine
    Remember the location of SceneBuilder.exe
    ----------------------------------------------------------------------
    C - Program Files - Scene Builder - SceneBuilder.exe
    --------------------------------------------------------------
    To configure Eclipse with scene builder
    --------------------------------------------------------------
    1. Create a new FXML file
    ----------------------------------------
    Right click on your project folder - New - Others - JavaFX - JavafXML document - next - Name: Main
    2. Link Scene Builder.exe
    ---------------------------------------
    Window Tab - Preferences - JavaFX - browse for scene builder.exe
    3. Open Scene Builder
    -----------------------------------
    right click on FXML file - open with scene builder
    4. Working with Scene Builder
    -----------------------------------------------
    Add whichever nodes you want to Scene Builder and save
    File - Save As
    5. Within start() add the following
    -----------------------------------------------------
    Parent root = FXMLLoader.load(getClass().getResource("Main.fxml"))
    add any necessary imports
    ("Main.fxml" may need to be changed to "/Main.fxml")
    --------------------------------------------------------------
    To configure IntelliJ with scene builder
    --------------------------------------------------------------
    1. Link Scene Builder to IntelliJ
    -------------------------------------------------
    File - Settings - Languages and Frameworks - JavaFx
    2. Open Scene Builder
    -----------------------------------
    To open scene builder right click your fxml file
    Go to Scene Builder
    3. Working with Scene Builder
    -----------------------------------------------
    Add whichever nodes you want to Scene Builder and save
    File - Save As
    4. Within start() method, make sure you have this line
    -------------------------------------------------------------------------------------
    Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"))

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

      i don't create JavaFXML? How do fix?

  • @rapbimsfrienda22
    @rapbimsfrienda22 2 ปีที่แล้ว +7

    The way you are teaching the programming language , pushes to learn more about it 🎉

  • @rahulk2573
    @rahulk2573 ปีที่แล้ว +30

    to add new fxml file, choosing 'other; while creating a file is not working. Instead right click on application->new->file->name is as somexyz.fxml

    • @damianolanzi6042
      @damianolanzi6042 7 หลายเดือนก่อน +1

      U r a savior, thx man

    • @gregjerry4110
      @gregjerry4110 3 หลายเดือนก่อน +1

      Thanks bro, was driving me nuts

    • @galaxypc7451
      @galaxypc7451 หลายเดือนก่อน +1

      Thanks brother!

  • @depressedpenguynsson9829
    @depressedpenguynsson9829 ปีที่แล้ว +5

    As far as I am aware, Eclipse doesnt have native integration with fxml files for JavaFX. There are ways to get around this via install older versions of Ecipse. So sad though :(

  • @K1LL4AChains
    @K1LL4AChains 4 ปีที่แล้ว +17

    What about a Java tutorial for SQL connection?

  • @AlejandzZ
    @AlejandzZ 3 ปีที่แล้ว +2

    good explanation , better than my professor in college

  • @fifaham
    @fifaham ปีที่แล้ว +2

    For some reason the Eclipse refused to add Main.fxml file (File > New > Other > JavaFX > New fxml Document) due to probably bug from the Oracle and I dont want to change the version of my eclipse (Version: 2023-09 (4.29.0) Build id: 20230907-1323) some say there is a bug - it is pain in the neck to change Eclipse Version for this bug- however I added an empty file manually and called it Main and gave it extension of dot fxml and placed it under the same application package space under Main.java and worked well. If you dont place it within the same package "application" then you either use forward slash such as in getResource("/Main.fxml") or use without forward slash / such as in getResource("Main.fxml") and drag it to inside the application package right under the Main.java. This worked well.

  • @AlterSaber
    @AlterSaber ปีที่แล้ว +7

    For those who have problems creating fxml files, try installing an older version of Eclipse (2022-09 for example), and also install JRE 17 or less.
    Previously I was using version 2023 and JRE 20 and I had a lot of errors.
    I hope I could help someone...

    • @benderbg
      @benderbg ปีที่แล้ว +3

      I had the same issue. There is a comment from 6 days ago what to do instead: right click on application->new->file->name it as somexyz.fxml. Then if you put the file inside /src/folder add slash in the constructor. If its inside application /src/folder/package you dont even have to do that.

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

      @@benderbg This works as I am writitng this on the most current version

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

      i found it more easy to crate the FXML file out off the eclips IDE using the scene builder and drag it in to the project

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

      @@tarekschaban5794 the amount of love that I have for you right now is fucking insane. I was fucking loosing my mind out of why this shit wasnt working. Thx you random dude on the internet x)

  • @fixedya
    @fixedya 4 ปีที่แล้ว

    Tutor: Once you're satisfied with whatever monstrosity that you built...
    ME: YES
    Subbed

  • @toxicwaste9648
    @toxicwaste9648 ปีที่แล้ว +2

    Date: October, 2023
    If you have the following issue or similar with FXML Documents
    Issue: org/eclipse/jface/databinding/swt/WidgetProperties
    Video Explaing the Fix: th-cam.com/video/WPIC-hK4_cg/w-d-xo.html

  • @alessioolivieri5460
    @alessioolivieri5460 2 ปีที่แล้ว +4

    For those of you that doesn't work on Intellij because of a NullPointerExceptionError.
    I solved putting the fxml file in /src/main/resources , and then i wrote in the code Parent root = FXMLLoader.load(getClass().getResource("/Builder.fxml"))

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

      Builder is the name of the fxml

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

      thanks bro

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

      thanks bro you are the best

  • @vincinoyb9734
    @vincinoyb9734 4 ปีที่แล้ว +1

    Enjoying your JavaFX video's!, very helpful, ty!

  • @vivaanshah2870
    @vivaanshah2870 4 ปีที่แล้ว +4

    Are you going to continue this series ??

  • @ntigirishari
    @ntigirishari 3 ปีที่แล้ว +1

    Hey @Bro Code, I am having an issue with that 3:00 step exactly: I am running java 11 as you are but for some reason when I open the Main.fxml, the SceneBuilder window is nowhere to be seen :-) But when I look it up in the taskbar I see it running. Do you got a fix for me, please...?

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

      o meu também está assim

  • @randommuiscchannel1049
    @randommuiscchannel1049 2 ปีที่แล้ว +2

    Can you use scene builder to create a complex application in a modular way? Build UI elements in separate scene builder files and combine or link later?

  • @JefffMocha
    @JefffMocha 5 หลายเดือนก่อน +1

    I couldn't create an FXML file on e(fx)clipse version 3.8.0. This was fixed in version 3.10.0. You can't get this version directly from the Eclipse Marketplace. There's tutorials online for how to install the new version

  • @DarinMiller
    @DarinMiller 4 ปีที่แล้ว +1

    Netbeans has Swing component management integrated into the IDE. By comparison, Scene builder feels more like an "add-on" than an integrated tool. After watching several hours of your mostly excellent videos, Netbeans seems to be intentionally "avoided". Do you feel Netbeans tries to do too much for a new user and thus is avoided?

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

      They may have a future plans, what they have today is not final and still under development. Developers need to do somework to make JavaFX SceneBuilder work well, I believe in the future everything will be integrated - hopefully.

  • @Smile-ih5xf
    @Smile-ih5xf ปีที่แล้ว +4

    HELP! I get an Error if I want to open a new Fxml Document. That Bad-boy just doesn‘t wanna open.

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

      Im stuck at the same step. If you found an answer it would be kind if you could share it with me, otherwise i´ll tell you as soon as i find out what the problem is

    • @gamefer3626
      @gamefer3626 ปีที่แล้ว +1

      Found the Mistake. You need Eclipse 2022-09. Every newer version of that isn´t working for this plug in

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

      damn! Thanks a lot@@gamefer3626

  • @MohitRaj-1712
    @MohitRaj-1712 3 ปีที่แล้ว +3

    Please make a video on how to use Scene Builder in Visual Studio code.

  • @catfoot6238
    @catfoot6238 3 ปีที่แล้ว +1

    you saved me bro thanks
    love from INDIA

  • @TheAnimeSounds
    @TheAnimeSounds 3 ปีที่แล้ว +1

    I wonder why scenebuilder just freezes for a moment (solid 5 seconds) everytime i right click on element. App just stop responding and then show context menu. It makes really annyiong if i have to remove couple of things.

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

    Thank you so much for these tutorials! :)

  • @quocanh1051
    @quocanh1051 7 หลายเดือนก่อน +2

    Bro! I move file .fxml to the same package of main.java, Parent root = FXMLLoader.load(getClass().getResource("Main.fxml")); but i just get this error java.lang.NullPointerException: Location is required. :( how can i fix it, thank u so much

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

      I have the same problem bro, did you find a solution in these 10 days?

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

    I've learned a'lot from your videos, thank you for being a BRO!!11

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

    I'm learning more from your videos than our book.
    Can I have your baby? :D

  • @dilipmurmu7870
    @dilipmurmu7870 4 ปีที่แล้ว

    Bro could you please make hangman game in java ?? .
    Please...Lots of love to u...

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

    Very useful for my study tq sir ❤

  • @abychemu6994
    @abychemu6994 3 ปีที่แล้ว +2

    Thank you. This was really helpful.

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

    Hey I have been working on a project with Java Swing, it is possible to have a button that leads to a JavaFX media player ?

  • @nicolasulrich1969
    @nicolasulrich1969 4 ปีที่แล้ว

    hey 👋 your videos are awesome ;)

  • @yunyutan6977
    @yunyutan6977 11 วันที่ผ่านมา

    Why i get erot Module HelloSceneBuilder not found

  • @lfan_tv
    @lfan_tv 4 ปีที่แล้ว

    Hi bro ,can i ask you some question. why everytime i create a javaFX project in eclipse will get error .or i need to set up the VM arguments everytime

    • @vincinoyb9734
      @vincinoyb9734 4 ปีที่แล้ว +2

      Yes

    • @lfan_tv
      @lfan_tv 4 ปีที่แล้ว +1

      @@vincinoyb9734 thanks you 👍

  • @etsubTeferi
    @etsubTeferi 8 วันที่ผ่านมา

    When i dowload, it is not dowload how thi come it say retry and i try many time it doesn't work. Please can you show how to fix

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

    i have a question please why there is an error flashing start from 6 min

  • @cheaphanith3282
    @cheaphanith3282 4 ปีที่แล้ว

    I learned alot from this channel thanks

  • @giridharans3840
    @giridharans3840 4 ปีที่แล้ว +2

    Bro plz create a video - how to pass data from one jframe to another jframe

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

    I Dont Recommend Downloading Release Candidates Of Apps They Usually Have Bugs

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

    Why can not drug button in pane 😢😢i got bored

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

    Do I get a button too?

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

    Nice

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

    Thanks a lot. Just try with the newest version. It works!

  • @ElmerHones-r9m
    @ElmerHones-r9m 3 หลายเดือนก่อน

    Armstrong Crescent

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

    thank you for this priceless tutorial

  • @ney461
    @ney461 8 วันที่ผ่านมา

    Nice video bro!

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

    Thanks for your explanation

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

    Great sir

  • @emirwertyukes9587
    @emirwertyukes9587 9 หลายเดือนก่อน +1

    Whenever I try to create a new fxml file I get an error message "org/eclipse/jface/databinding/swt/WidgetProperties". I couldn't find any solution, what should I do?

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

      did you find any solution?

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

      @@nightcall2848 Unfortunately, no

  • @yasinmohammadi8
    @yasinmohammadi8 4 ปีที่แล้ว

    Thank you man that really helped me

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

    Thank you so much for this!

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

    nice

  • @kbkarol2212
    @kbkarol2212 4 ปีที่แล้ว

    ohh THANK YOU BRO you super good luck you Bro THANKS

  • @colemiller6032
    @colemiller6032 12 วันที่ผ่านมา

    Great!

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

    Nice!

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

    Great video!

  • @dmitryabramov1483
    @dmitryabramov1483 3 ปีที่แล้ว +1

    Кисель!!!

  • @HousseinDroubi-o9i
    @HousseinDroubi-o9i 6 หลายเดือนก่อน

    Hey man, good.

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

    brocode best yter ever xD

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

    the bro-est of bros

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

    thank teacher!

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

    Useful 👌👍

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

    that was fantastic T__T

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

    ty for vid

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

    thx G

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

    thanks bro

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

    Very helpful ☺️

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

    Thanks

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

    Thanks Mate 😍👌

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

    thank you so much

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

    You're a boss

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

    Thank you Bro.

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

    Thanks Bro

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

    thank you bro

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

    Nice

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

    nice