JavaFX stages 🎭

Поделиться
HTML-код
  • Опубликовано: 26 июн 2024
  • JavaFX stage tutorial explained
    #javafx #tutorial #stage
    package application;
    import javafx.application.Application;
    import javafx.stage.Stage;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.image.Image;
    import javafx.scene.input.KeyCombination;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.paint.Color;
    public class Main extends Application {
    public static void main(String[] args) {
    launch(args);
    }
    @Override
    public void start(Stage stage) throws Exception {
    //Stage stage = new Stage();
    Group root = new Group();
    Scene scene = new Scene(root,Color.BLACK);
    //Image icon = new Image("icon.png");
    //stage.getIcons().add(icon);
    //stage.setTitle("Stage Demo Program w00t w00t");
    //stage.setWidth(420);
    //stage.setHeight(420);
    //stage.setResizable(false);
    //stage.setX(50);
    //stage.setY(50);
    //stage.setFullScreen(true);
    //stage.setFullScreenExitHint("YOU CAN'T ESCAPE unless you press q");
    //stage.setFullScreenExitKeyCombination(KeyCombination.valueOf("q"));
    stage.setScene(scene);
    stage.show();
    }
    }
    ------------------------------
    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...
    ------------------------------
  • НаукаНаука

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

  • @TheScroom
    @TheScroom 2 года назад +92

    If you're coding along and you are using intelliJ, make sure icon.png is in the resources sub folder of src > main. Otherwise, you'll be in for a wild safari of filepath issues.

  • @BroCodez
    @BroCodez  3 года назад +41

    I had COVID-19 while working on videos last week, so SMASH that like button for my effort 👍
    package application;

    import javafx.application.Application;
    import javafx.stage.Stage;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.image.Image;
    import javafx.scene.input.KeyCombination;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.paint.Color;
    public class Main extends Application {

    public static void main(String[] args) {
    launch(args);
    }
    @Override
    public void start(Stage stage) throws Exception {

    //Stage stage = new Stage();
    Group root = new Group();
    Scene scene = new Scene(root,Color.BLACK);

    //Image icon = new Image("icon.png");
    //stage.getIcons().add(icon);
    //stage.setTitle("Stage Demo Program w00t w00t");
    //stage.setWidth(420);
    //stage.setHeight(420);
    //stage.setResizable(false);
    //stage.setX(50);
    //stage.setY(50);
    //stage.setFullScreen(true);
    //stage.setFullScreenExitHint("YOU CAN'T ESCAPE unless you press q");
    //stage.setFullScreenExitKeyCombination(KeyCombination.valueOf("q"));

    stage.setScene(scene);
    stage.show();
    }
    }

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

      @@aproe610 f

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

      I hope you get better soon!

    • @samishaban9040
      @samishaban9040 Год назад +1

      Can u plz make a video on making a runnable jar of Java fx using eclipse. 😢

  • @MrFabalu
    @MrFabalu Год назад +14

    For those who can't run it, because it throws an exception with the image (intelliJ 2022.3 version):
    If you click file/project stucture/modules, you can see the working directories on the right in colors. I put my image where the resourse folders points, and that's how I got is working!

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

    I've been watching tutorials for a long time now. You sir, are amazing. The quality of this is Ivy league level. Thank you.

  • @matejkrizan1422
    @matejkrizan1422 3 года назад +5

    Bruh, your channel is just perfect

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

    jeesus, it's insane how fast your channel grew from when I came in and you had less than 500 subs, huuuge respect man, and as always, indreadible content + explanation, please keep it up!!!

  • @Snowmanver2
    @Snowmanver2 2 года назад +1

    great work, thank you Bro! I've finished watching your 12-hour long Java tutorial, and now it's time for JavaFX, yeah!

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

    Thanks Bro, I'm glad you're back with some new stuff!

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

    Solid tutorial! Keep up the great work!

  • @salahSaad-ld8id
    @salahSaad-ld8id 4 месяца назад +1

    You a great way of explaining and teaching
    Thanks for your efforts

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

    Best tutorials out there, thanks bro!

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

    Yooo, finished the main Java tutorial, thanks to you I'm finally thinking I can make the game I wanted to make :) You sir are a true hero!

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

    Amazing Video,Thanks
    Please Continue Making Videos

  • @haniyasaeed1853
    @haniyasaeed1853 2 года назад +2

    Yo broo!
    I searched and searched for a biggener friendly javafx course
    Yours is totally biggener friendly ,informative ,helpful, useful +(doesn't make me sleepy)
    Can't thank u enough may Allah give u happiness and good health

  • @guicomtoddy9777
    @guicomtoddy9777 5 месяцев назад +2

    I'm Brazilian and i loved your video, thanks!

  • @sagarsubedi2818
    @sagarsubedi2818 Месяц назад

    Really cool brother. One of the best tutorials out there on JavaFX. Cheers mate.

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

    w00t w00t! Great tutorial, thanks :)

  • @ppaulof
    @ppaulof Год назад +1

    I'm learning JavaFX for a final paper, thank you so much!

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

    Great works 👏🏻👏🏻👏🏻

  • @jimmorrison2657
    @jimmorrison2657 3 года назад +7

    I programmed Swing for 15 years, and then two years in JavaFX.
    I love JavaFX, but desktop apps seem to be dying out, so there is not much work in it.
    It's a shame, because I would love to continue with this work.

  • @parham6676
    @parham6676 3 года назад +35

    hey bro so i just watched your 12 hour java video,
    you really helped me a lot thank you!
    also,
    could u make more project videos so we can practice what we've learned?

  • @TheSamurai4861
    @TheSamurai4861 4 месяца назад

    great tutorial !

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

    very useful content, thank you so much

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

    i think the information you explain to me are too easy to understand. Thank you for your lesson, wish you a nice day bro!

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

    Love it! Thanks bro. Great work.

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

    Great tutorial, thanks!

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

    keeeeeb going man I Like your explaning so muck

  • @daminkhan5105
    @daminkhan5105 Год назад +1

    you are literally a gigachad thanks brooo ❤❤

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

    No wonder why you have 0 dislikes truly Amazing !

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

    what a fantastic explanation

  • @lairdev6934
    @lairdev6934 7 месяцев назад

    Excellent tutorial thanks for sharing, greetings from Mexico.

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

    gooey sandwich my favourite

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

    Great vid bro! Even though english is my second language I understood completely your video. Your channel is such a blessing!

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

    thnx bro, i rlly like ur vids. they r rlly helpful and i hope u will make more great content like this

  • @jaydeeppatil7936
    @jaydeeppatil7936 9 месяцев назад +4

    If you are trying to add images in intelliJ Idea
    right click on your project and add a new directory named as res
    right click on res and then go to mark directory as resources
    it will fix the issue

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

    Leaving a comment because you're badass

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

    Awsome video

  • @sanjaykumar-uy5jp
    @sanjaykumar-uy5jp 3 года назад

    you are awesome bro... please give us more javafx videos ...

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

    Hey Bro! Thanks for your videos, I'm learning a lot with them.

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

    YOU ARE AMAZING MAN

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

    bro u r the best . u r excellent at giving tutorials. and please make a tutorial about grid pane ,stack pane , flow pane , adding text area and combobox .thanks

  • @INSIDEXX
    @INSIDEXX 8 месяцев назад

    magnificent

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

    love your videos

  • @user-mq3it8fi6w
    @user-mq3it8fi6w 7 месяцев назад

    Shoutout to My bro , i thought i was hopless and cooding was really boring until i came a cross your channel 😁

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

    Amazing Video!

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

    The best teacher ever

  • @user-ee8ze5wi5v
    @user-ee8ze5wi5v 6 месяцев назад

    I tried it. It works well and good.

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

    Tks for all the info bro!

  • @Alkaison
    @Alkaison 4 месяца назад

    Awesome Bro!

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

    Great !

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

    Love your video

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

    Great

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

    Muito obrigado

  • @John-Snow-Smith
    @John-Snow-Smith 2 года назад

    awesome broo!!!

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

    Useful 👌👍

  • @habdochkeineahnung
    @habdochkeineahnung 3 года назад +10

    For all you Beginners, If you have your textures set up in the ressources folder, just type in the path excluding the ressources folder itself. Example: i have set up my textures in a folder called Soil, wich is inside the folder textures wich is inside the folder ressources. so what i put inside the Image-constructor is this: "/textures/soil/yourimagename.png" have a nice one. dont forget this about java: its more afraid of you than you are of it. :)

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

    good. thanks, it helps me a lot.

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

    Thank you, very nice video!

  • @user-hh8vp3ne4b
    @user-hh8vp3ne4b 8 месяцев назад

    This lesson is really cooler than the video in my native language

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

    Thanks a lot!

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

    This is helping me a lot

  • @shan-e-shafiq3405
    @shan-e-shafiq3405 Год назад

    great

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

    Let's gooooo !!

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

    Superb brooo keep it up

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

    i hope you make a lot of videos about javafx

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

    Nice!

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

    Thankful

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

    Broooo, damn!

  • @amadoutraore1967
    @amadoutraore1967 Месяц назад

    Thank you so much

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

    thank youuuu u r amazing

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

    Hey Bro, can you please do a video on java streams (mapping, filtering etc.),

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

    thank you for everything .

  • @MohamedAyman-kr9yq
    @MohamedAyman-kr9yq 2 года назад

    nice videos

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

    god bless you , thank you

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

    Nice

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

    Bro this is so helpful bro

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

    super video

  • @jRafayam34
    @jRafayam34 5 дней назад

    Bruh,
    Just Fall in Love with Bro Code.

  • @lemondefortnite9579
    @lemondefortnite9579 4 месяца назад

    nice

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

    Thank you very much bro
    you helped me a lot :D

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

    Good job bro 🙃

  • @pikachu12345
    @pikachu12345 11 месяцев назад

    Thanks Bro!!

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

    Gracias bro 👍

  • @FJ.Y
    @FJ.Y 3 года назад

    Much obliged 😘

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

    thanks!!

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

    Thank you

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

    5 months ago, and there is still no dislikes... Amazing :D

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

    gerat video as usual

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

    super video bro

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

    Thank you.

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

    purrfect

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

    Tnx Bro you help me a lot!

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

    thanks BroChad

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

    Another great video! Hey, I have a question. So, I saw your 4 hour video about Java GUI and now know how to create a small application. But, I don't know how to use MySQL Database to connect it to my Login and Register form. Would you please make a video about MySQL and how to use it with the Login Form? I would really appreciate it :)

  • @famelitegamer3317
    @famelitegamer3317 3 года назад +5

    Woooo 11th comment pwease pin
    Thank you so much bro code, ive been wstxhing your java tutorials and landed a job at a near by website development job, im so excited akd it was all because of you. After java what language do you sugest learning?

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

      Congrats on the job! thanks Fam, but it was you who put in the work to get there!
      The language depends on the project. Mastering one language is the best, but if you work with web dev, Javascript wouldn't be a bad 2nd language.

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

    ❤️❤️

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

    ♥️♥️♥️

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

    please do a javafx game tutorial

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

    gg

  • @chrs-wltrs
    @chrs-wltrs 2 года назад

    Commenting for the algorithm 🙏