Java GUI 🖼️

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 175

  • @BroCodez
    @BroCodez  4 роки тому +64

    import java.awt.Color;
    import javax.swing.ImageIcon; import javax.swing.JFrame;
    public class Main {
    public static void main(String[] args) {
    // JFrame = a GUI window to add components to
    JFrame frame = new JFrame(); //creates a frame
    frame.setTitle("JFrame title goes here"); //sets title of frame
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //exit from application
    frame.setResizable(false); //prevent frame from being resized
    frame.setSize(420,420); //sets the x-dimension, and y-dimension of frame
    frame.setVisible(true); //make frame visible
    ImageIcon image = new ImageIcon("logo.png"); //create an ImageIcon
    frame.setIconImage(image.getImage()); //change icon of frame
    frame.getContentPane().setBackground(new Color(0x123456)); //change color of background }
    }

    • @ebrimadrammeh
      @ebrimadrammeh 3 місяці тому +1

      Well understand, thank you so much

  • @phuongdonguyen6327
    @phuongdonguyen6327 Рік тому +19

    Best java tutorial playlist on UA-cam, I want to thank for what you've done, keep up good work!

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

    Man, i wish everyone whos lookin to learn lava finds this channel! Its just absolutely the best!

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

      It's Java . 😂.lava

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

      @@sudharshan_reddy_kakarla the funny thing is that i was looking at your comment trying to figure out if it was a java refrence or not, then i noticed my typo lmao
      Yea i would import and use the "java.😂.lava" class in my code too lol

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

    Never got this idea of using subclass of JFrame instead of repeating the same code several times in different projects. Thanks Bro.

  • @pavelkvasnicka6856
    @pavelkvasnicka6856 Рік тому +2

    This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro

  • @KaviBalan007
    @KaviBalan007 2 місяці тому

    I am really glad that I find your youtube channel. You are saviour man

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

    This is also a nice way to understand the keyword this. Keyword this basically just pretends to be an instance of the class in which you are in.

  • @gemmarosemolina2082
    @gemmarosemolina2082 Рік тому

    I really like the way your patience of explaining.

  • @rock6766
    @rock6766 2 роки тому +7

    very fun very interactive lessons as well as structural knowledge, love it man 👍

  • @bitks7375
    @bitks7375 3 роки тому +11

    Bro keep this up, i really like your way of explaining everything. I just began to code, your videos will guarantee me a job in the future :)

  • @tngflash2814
    @tngflash2814 3 роки тому +30

    "Let's set the size by 420 to 420 because that's a funny number." LMAO. This had me laffin.

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

    Honestly thank you so much, my java skill got improved by watching you

  • @paniccookie_
    @paniccookie_ 2 роки тому +1

    You are carrying my friend and I in our java comp sci class, THANK YOU!!!

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

    Bro I recommended ur videos to my classmates they like it.

  • @jerryagsunod7053
    @jerryagsunod7053 Рік тому

    best ever tutorial i've ever watch, thank you Bro Code

  • @Sleepmedicine-kz9cw
    @Sleepmedicine-kz9cw 11 місяців тому +1

    You are great, these videos are precious. Thank you bro.

  • @dianamilenaarchilacordoba4632
    @dianamilenaarchilacordoba4632 2 місяці тому

    great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much

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

    Nice job, man! I like your tutorials too much. Congratulations for the beautiful job!

  • @BekirSARIKAYA
    @BekirSARIKAYA Рік тому +1

    Thank you Bro for sharing this video.

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

    Bro is our shining star in the middle of the night

  • @sankartechpro
    @sankartechpro 4 роки тому +2

    ❤️Superb, good explanation, keep it up. 👏👍👌

  • @simon-elrondir8621
    @simon-elrondir8621 Рік тому

    Thank you for teaching this to us. The time you put into these videos really shows :)

  • @pro-ck1qg
    @pro-ck1qg 2 місяці тому

    the best tutorial

  • @rohitbharatbhandwalkar8583
    @rohitbharatbhandwalkar8583 Рік тому

    I thought starting GUI would be boring but guess what, I like this!!!

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

    That "Twitch Purple" is actually 0x7B3296 in Hexadecimal, if anybody was curious as to the hex equivalent.

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

      nice!

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

      @@BroCodez I wonder if you can do this same type of tutorial series for C# / .NET; Now, I won't be able to utilize .NET6 (i.e., the latest available standard of the .NET framework) for quite some time, but as far as .NET 5 goes, that will be totally applicable.

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

    I am loving this channel.

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

    We will support you.... Keep rocking broooo😎

  • @cnarkaya629
    @cnarkaya629 3 місяці тому

    why are you such a chad? Thanks bro!

  • @D_Ghandi
    @D_Ghandi 3 місяці тому

    Helping you, to keep helping me ⛈

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

    Another excellent video, Bro. Thanks. BTW, proud subscriber here.

  • @NatyTor
    @NatyTor 2 роки тому +1

    man im so like your video!! thanksss

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

    Becareful what you choose to highlight when you apply that change to your targeted word. Make sure you dont have any place where it should stay the same highlighted. Good tip tho!

  • @eugenezuev7349
    @eugenezuev7349 6 місяців тому

    splendid

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

    dude+just+wooow

  • @ОлександрРадовець-ы6т

    so very good

  • @phanikiran9826
    @phanikiran9826 Рік тому

    no way, it can't be this easy.. no way

  • @Ahmed_Emad_
    @Ahmed_Emad_ Рік тому

    Thank You for ease the information.

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

    Thank you for this video

  • @speklex779
    @speklex779 Рік тому

    Dope video

  • @mahdib9361
    @mahdib9361 4 роки тому +2

    Please Make Tuturial For JAVAFX

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

    awesome content actually, and it helped me a lot cause i wasn't finding any place to study it easily
    ty bro

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

    Bro you are too good .... You are best than my college teachers 💓💗

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

    You are amazing

  • @toemilio
    @toemilio 2 місяці тому

    helped me with my cs30 class legend

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

    Thanks for another great vid

  • @abdialemu8391
    @abdialemu8391 Рік тому

    bravo

  • @Kevin-xs1ft
    @Kevin-xs1ft Рік тому

    high quality

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

    Hey you yeah I'm talking to you ! You r the best 🙏❣️

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

    RESPECT TO WHAT YOU DO BIG THANK YOU FOR YOU

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

    *_cool_*

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

    Thank you very much brother!This is really helpfull!Keep it up ur good work!Solve my a lot of questions!

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

    you are great. please make videos for mobile app

  • @roger-tj7oc
    @roger-tj7oc 3 роки тому

    Best account on youtube

  • @TEGUIAKAMEGNEDimitriAbel
    @TEGUIAKAMEGNEDimitriAbel Рік тому

    Cool

  • @amalbenmoussa4760
    @amalbenmoussa4760 6 місяців тому

    thks

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

    this feels like HTML/CSS coding

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

    great

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

    Thank you sooooo much for all the videos

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

    Thank You

  • @unalysuf
    @unalysuf Рік тому

    Thank you so much really for your effort

  • @zahramsvi9478
    @zahramsvi9478 Рік тому

    Great!

  • @魏子強-z7s
    @魏子強-z7s Рік тому

    thank you bro my hero

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

    🙉🙉 i really like the brocode did it

  • @touriaamachrak1279
    @touriaamachrak1279 Рік тому

    THANKS

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

    This series is great!

  • @geovex8333
    @geovex8333 Рік тому +1

    This is really epic! hahah

    • @jjbigelow4522
      @jjbigelow4522 Рік тому

      I dont think so

    • @geovex8333
      @geovex8333 Рік тому

      @@jjbigelow4522 you obviously are a little beta programmer who sits in his moms basement all day punching away at the keys. BRO CODE IS EPIC >:(

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

    this has helped me a great deal

  • @PoorwayTraning
    @PoorwayTraning Рік тому

    thanks

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

    thanks bro

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

    Love you Bro,
    Cheers Bro

  • @danny.3036
    @danny.3036 3 роки тому

    Thanks, Bro! ☕ You're awesome!

  • @josueortiz8898
    @josueortiz8898 Рік тому

    Thanks!

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

    Thankssss for this one

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

    Thanks G!

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

    Thank you, that was amazing lesson :D

  • @ravensco7086
    @ravensco7086 Рік тому

    Thank you bro!

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

    Bro, amazing x

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

    Thanks bro code!!! Keep it up. I'm actually going to look forward to you.☺🍫

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

    Ly Bro 1

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

    Amazing! Thank you very much sir!

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

    thx

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

    thank you

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

    Thank you so much sir.

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

    Epic video!

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

    Thanks Bro!

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

    Thanks man

  • @Elias___
    @Elias___ 10 місяців тому +1

    I will never call G.U. I. As GOO WEE

  • @bbabak4439
    @bbabak4439 3 роки тому +5

    I have a problem, my eclipse doesn't suggest component class methods (that is usable to other objects) like .setSize(), .setVisible(), and much more. How do i fix this? i really don't want to use intelliJ :(

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

      Isn’t it awesome that we can simply ask AI our questions now and get immediate tailored personalized answers? I still find it miraculous. To answer yours: I cant say with 100% certainty, but it might be something that needs enabled in settings/preferences… although hopefully by 2 years youve long since found the solution lol

  • @augischadiegils.5109
    @augischadiegils.5109 4 роки тому

    Thanks

  • @sliky7317
    @sliky7317 2 роки тому +1

    I'm assuming you can't do this with an online java compiler

  • @BISAMARKSMANDOANG
    @BISAMARKSMANDOANG Рік тому

    GG

  • @nilsnickname4455
    @nilsnickname4455 2 роки тому +1

    Does anyone know why there is no logo when I copy the exact code above and also put a 16x16 png file named logo.png in the src-folder??☹

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

    😘😘😘😘

  • @bananogamer6972
    @bananogamer6972 3 місяці тому

    I have a problem here, when i put a specific height and width for some reason the window opened is smaller

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

    Hello Bro, I hope you are doing well

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

    6:26 Why did they put a set method inside a get method?

  • @PJ-od9ev
    @PJ-od9ev 3 роки тому +1

    i have a question bro how do you know which method to use for example setIconImage(). how to know where and which method i should use??

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

    Can you help me with GridBagLayout?

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

    i can't find words to say