JavaFX install Scene Builder 🛠️

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • JavaFX how to install Scene Builder Eclipse & IntelliJ
    Download:
    00:00:21
    Eclipse:
    00:01:50
    IntelliJ: 00:06:27
    gluonhq.com/pr...
    ---------------------------------------
    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"))
    #JavaFX #Scene #Builder
    Bro Code merch store 👟 :
    ===========================================================
    teespring.com/...
    ===========================================================
    music credits 🎵 :
    ===========================================================
    Up In My Jam (All Of A Sudden) by - Kubbi / kubbi
    Creative Commons - Attribution-ShareAlike 3.0 Unported- CC BY-SA 3.0
    Free Download / Stream: bit.ly/2JnDfCE
    Music promoted by Audio Library • Up In My Jam (All Of A...
    ===========================================================

Комментарии • 93

  • @BroCodez
    @BroCodez  3 года назад +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?

  • @rahulk2573
    @rahulk2573 Год назад +22

    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

  • @JefffMocha
    @JefffMocha 3 месяца назад +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

  • @K1LL4AChains
    @K1LL4AChains 3 года назад +16

    What about a Java tutorial for SQL connection?

  • @depressedpenguynsson9829
    @depressedpenguynsson9829 Год назад +4

    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 :(

  • @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 11 месяцев назад

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

    • @tarekschaban5794
      @tarekschaban5794 10 месяцев назад

      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 6 месяцев назад

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

  • @toxicwaste9648
    @toxicwaste9648 11 месяцев назад +1

    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: ruclips.net/video/WPIC-hK4_cg/видео.html

  • @rapbimsfrienda22
    @rapbimsfrienda22 2 года назад +6

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

  • @Smile-ih5xf
    @Smile-ih5xf Год назад +3

    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 11 месяцев назад

      damn! Thanks a lot@@gamefer3626

  • @quocanh1051
    @quocanh1051 5 месяцев назад +1

    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 4 месяца назад

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

  • @fifaham
    @fifaham 10 месяцев назад +1

    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.

  • @TheAnimeSounds
    @TheAnimeSounds 2 года назад +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.

  • @vivaanshah2870
    @vivaanshah2870 3 года назад +4

    Are you going to continue this series ??

  • @MohitRaj-1712
    @MohitRaj-1712 3 года назад +2

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

  • @randommuiscchannel1049
    @randommuiscchannel1049 Год назад +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?

  • @Yassingouti
    @Yassingouti 5 месяцев назад

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

  • @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"))

  • @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...?

  • @catfoot6238
    @catfoot6238 3 года назад +1

    you saved me bro thanks
    love from INDIA

  • @RealDavidx3D
    @RealDavidx3D 2 года назад

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

  • @AlejandzZ
    @AlejandzZ 3 года назад +2

    good explanation , better than my professor in college

  • @realistic1564
    @realistic1564 5 месяцев назад

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

  • @vincinoyb9734
    @vincinoyb9734 3 года назад +1

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

  • @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 ?

  • @abychemu6994
    @abychemu6994 3 года назад +2

    Thank you. This was really helpful.

  • @dilipmurmu7870
    @dilipmurmu7870 3 года назад

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

  • @DarinMiller
    @DarinMiller 3 года назад +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 10 месяцев назад

      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.

  • @emirwertyukes9587
    @emirwertyukes9587 6 месяцев назад +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?

  • @ZX10RArcher
    @ZX10RArcher 3 года назад

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

  • @kbkarol2212
    @kbkarol2212 3 года назад

    ohh THANK YOU BRO you super good luck you Bro THANKS

  • @dmitryabramov1483
    @dmitryabramov1483 3 года назад +1

    Кисель!!!

  • @fixedya
    @fixedya 3 года назад

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

  • @ElmerHones-r9m
    @ElmerHones-r9m 23 дня назад

    Armstrong Crescent

  • @dismake4326
    @dismake4326 3 месяца назад

    thank you so much

  • @HousseinDroubi-o9i
    @HousseinDroubi-o9i 3 месяца назад

    Hey man, good.

  • @oettetteo4798
    @oettetteo4798 2 года назад

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

  • @peterknut5688
    @peterknut5688 2 года назад

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

  • @ivarlehvonen3185
    @ivarlehvonen3185 19 дней назад

    ty for vid

  • @khaledeldingawy9234
    @khaledeldingawy9234 6 месяцев назад

    thanks bro

  • @pratyushgangwar9747
    @pratyushgangwar9747 2 месяца назад

    Nice!

  • @Dswilsonangel
    @Dswilsonangel 2 года назад

    Thank you so much for these tutorials! :)

  • @Riott245
    @Riott245 10 месяцев назад

    Thank you so much for this!

  • @siavashnourmohammadi9189
    @siavashnourmohammadi9189 Год назад

    thank you for this priceless tutorial

  • @lfan_tv
    @lfan_tv 3 года назад

    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

  • @nathnaelmekonnen2888
    @nathnaelmekonnen2888 3 года назад

    bro thats amazing .u are excellent on giving tutors

  • @rapbimsfrienda22
    @rapbimsfrienda22 2 года назад

    Thanks for your explanation

  • @chocodonuts3644
    @chocodonuts3644 10 месяцев назад

    that was fantastic T__T

  • @giridharans3840
    @giridharans3840 3 года назад +2

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

  • @yuvarajspeed8079
    @yuvarajspeed8079 Год назад

    Very useful for my study tq sir ❤

  • @nicolasulrich1969
    @nicolasulrich1969 3 года назад

    hey 👋 your videos are awesome ;)

  • @cheaphanith3282
    @cheaphanith3282 3 года назад

    I learned alot from this channel thanks

  • @yeadatwunyt8004
    @yeadatwunyt8004 3 года назад

    the bro-est of bros

  • @kairu9373
    @kairu9373 3 года назад

    Do I get a button too?

  • @ashrafelanssari5851
    @ashrafelanssari5851 Год назад

    thank you bro

  • @yasinmohammadi8
    @yasinmohammadi8 3 года назад

    Thank you man that really helped me

  • @JohnSmithM2C
    @JohnSmithM2C 2 года назад

    brocode best yter ever xD

  • @percivalgebashe4376
    @percivalgebashe4376 Год назад

    Nice

  • @josebenhurnascimentodeoliv492
    @josebenhurnascimentodeoliv492 Год назад

    nice

  • @felixnyamongo
    @felixnyamongo 2 года назад

    Thanks Bro

  • @mihanfernando9890
    @mihanfernando9890 Год назад

    nice

  • @trxlly
    @trxlly Год назад

    Thanks

  • @prographicsstudio6313
    @prographicsstudio6313 Год назад

    Great sir

  • @Arxa93
    @Arxa93 2 года назад

    You're a boss

  • @DileeshaWeliwaththa
    @DileeshaWeliwaththa 3 года назад

    Thanks Mate 😍👌

  • @attitude3638
    @attitude3638 Год назад

    Nice

  • @rolandotanawan1305
    @rolandotanawan1305 3 года назад

    Thank you Bro.

  • @ehsanmna8966
    @ehsanmna8966 3 года назад

    Very helpful ☺️

  • @wolanus
    @wolanus 3 года назад

    Great video!

  • @ashkanshakiba9579
    @ashkanshakiba9579 3 года назад

    Useful 👌👍