Java GUI 🖼️

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

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

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

    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 2 หลายเดือนก่อน

      Well understand, thank you so much

  • @phuongdonguyen6327
    @phuongdonguyen6327 ปีที่แล้ว +18

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

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

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

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

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

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

      It's Java . 😂.lava

    • @kemann3815
      @kemann3815 2 ปีที่แล้ว +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

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

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

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

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

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

    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.

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

  • @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 ปีที่แล้ว +10

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

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

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

  • @pro-ck1qg
    @pro-ck1qg หลายเดือนก่อน

    the best tutorial

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

    Thank you Bro for sharing this video.

  • @Sleepmedicine-kz9cw
    @Sleepmedicine-kz9cw 10 หลายเดือนก่อน +1

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

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

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

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

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

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

    Helping you, to keep helping me ⛈

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

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

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

    Please Make Tuturial For JAVAFX

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

    why are you such a chad? Thanks bro!

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

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

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

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

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

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

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

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

      Thank you rene!

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

    man im so like your video!! thanksss

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

    Thank You for ease the information.

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

    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!

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

    helped me with my cs30 class legend

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

    I am loving this channel.

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

    Bro is our shining star in the middle of the night

  • @simon-elrondir8621
    @simon-elrondir8621 ปีที่แล้ว

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

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

    splendid

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

    Thank you for this video

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

    RESPECT TO WHAT YOU DO BIG THANK YOU FOR YOU

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

    dude+just+wooow

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

    great

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

    Thank you sooooo much for all the videos

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

    Cool

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

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

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

    Thank You

  • @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 6 หลายเดือนก่อน

      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

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

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

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

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

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

    Thank you so much really for your effort

  • @MrLoser-ks2xn
    @MrLoser-ks2xn 2 ปีที่แล้ว

    Thanks

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

    thks

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

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

    THANKS

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

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

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

    bravo

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

    you are great. please make videos for mobile app

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

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

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

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

    Hey, I'm just learning coding but I saw your reply to someone else. Is learning Swing a waste of time now that it's becoming outdated? Should I focus my time on learning JavaFX instead? Java is my first language.

  • @ОлександрРадовець-ы6т
    @ОлександрРадовець-ы6т 3 ปีที่แล้ว

    so very good

  • @Kevin-xs1ft
    @Kevin-xs1ft ปีที่แล้ว

    high quality

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

    Thanks for another great vid

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

    thanks

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

    thank you

  • @魏子強-z7s
    @魏子強-z7s ปีที่แล้ว

    thank you bro my hero

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

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

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

    *_cool_*

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

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

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

    You are amazing

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

    this has helped me a great deal

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

    Thank you bro!

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

    Amazing! Thank you very much sir!

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

    🙉🙉 i really like the brocode did it

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

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

    Thankssss for this one

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

    Thanks!

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

    thanks bro

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

    Thank you so much sir.

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

    Great!

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

    Dope video

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

    Thanks G!

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

    Thank you, that was amazing lesson :D

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

    thx

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

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

  • @danny.3036
    @danny.3036 3 ปีที่แล้ว

    Thanks, Bro! ☕ You're awesome!

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

    This series is great!

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

    thanks!
    this.setLocationRelativeTo(null); //center frame

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

    hey bro, at the very end when we created the instance of myframe in main, if we wish to change or add some extra jframe property to the frame, can we do that from main itself or we have to go back to myframe class?

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

    this feels like HTML/CSS coding

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

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

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

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

    Can you help me with GridBagLayout?

  • @roger-tj7oc
    @roger-tj7oc 3 ปีที่แล้ว

    Best account on youtube

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

    what happens if I make two or more frames ??
    also my setBounds() method isn't working.I set Layout to null

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

    Hey bro i am 15 yrs old and i have learned.. c, c#, html, css, java script. ..and i have watched most of your java videos.. but
    I am not quiet comfortable with java.. i dont feel that i have understand and ready to build app in java.. but i have created.. 3 games with c# and unity.. do you have some solutions?

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

      My opinion is that, Java FX is better for developing applications than Swing, that would be a good next step for you

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

      @@BroCodez thanks for your suggestion

    • @nethminaashen6201
      @nethminaashen6201 2 วันที่ผ่านมา

      Are you doing well 👀❤

    • @nethminaashen6201
      @nethminaashen6201 2 วันที่ผ่านมา

      ​@@YTSHANKYare you doing well ❤

    • @YTSHANKY
      @YTSHANKY 2 วันที่ผ่านมา

      @@nethminaashen6201 yup doing good, currently doing bachelor's in computer science

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

    Thanks man

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

    I encountered some problem, mine does not produce any window instead only say...
    "Exception in thread "main" java.lang.UnsatisfiedLinkError: no awt in system library path:" and so on,
    Any way to fix this? Thank you.

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

    Thanks Bro!

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

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

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

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

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

    why do we have to replace frame with this? i dont understand it

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

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

    Love you Bro,
    Cheers Bro

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

    can we put hexadecimal colors in java?

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

      yes 0x000000