JFrame | Java Swing Tutorial for Beginners

In this Java Swing GUI Tutorial we are going to explore the Java Swing JFrame for beginners. I will show you how to create and configure a Java Swing JFrame using two methods; JFrame using Inheritance and JFrame using composition. You will also learn which one is generally preferred as a best practice. Finally, we will explore some of the most common methods of the Java Swing JFrame class.
Check out my KZread Channel for more videos:
/ javacodejunkie

Пікірлер: 40

  • @8rboy
    @8rboy Жыл бұрын

    Probably the best Swing tutorial I've ever seen. Thanks a lot man

  • @nskaries
    @nskariesАй бұрын

    The best swing tutorial ever!!!

  • @alaaitanii
    @alaaitaniiКүн бұрын

    Thank you so much for the detailed tutorial

  • @andysegura6254
    @andysegura62543 жыл бұрын

    I was looking for videos as detailed as these, thank you!

  • @JavaCodeJunkie

    @JavaCodeJunkie

    3 жыл бұрын

    @Andy Segura - You are welcome! I am glad you find them useful!

  • @saadshoaieb2241
    @saadshoaieb22414 ай бұрын

    best Swing tutorial I've ever seen. Thanks a lot

  • @JavaCodeJunkie
    @JavaCodeJunkie3 жыл бұрын

    Here is the latest video in my Java Swing series. Like, comment and subscribe and, as always, take care and keep on coding!

  • @aidanknox2430
    @aidanknox2430 Жыл бұрын

    Thanks for the refresher!

  • @branmoxley
    @branmoxley2 ай бұрын

    Excellent tutorial, thank you!

  • @fvgm
    @fvgm8 ай бұрын

    Thank you to this valuable content. Great.

  • @anthonygrear6226
    @anthonygrear62262 жыл бұрын

    Great content. You explain concepts very well.

  • @JavaCodeJunkie

    @JavaCodeJunkie

    2 жыл бұрын

    @Anthony Grear - Thank you! I appreciate your kind words! 🙏 Cheers!

  • @alexop5919
    @alexop59193 жыл бұрын

    this composition method is so cool!

  • @JavaCodeJunkie

    @JavaCodeJunkie

    3 жыл бұрын

    @Alex Op - It really is! This will be a big step in learning Java OOP when you get your head around the concept! Cheers!

  • @tay261
    @tay261 Жыл бұрын

    Thank you for a very clear and concise explanation.

  • @JavaCodeJunkie

    @JavaCodeJunkie

    Жыл бұрын

    @tay261 - You're welcome! Glad it helped! Cheers!

  • @Sam-Gazer
    @Sam-Gazer2 жыл бұрын

    Thank you that's so helpful, your way of explaining is so good, your voice as well is calm and clear 👍.

  • @JavaCodeJunkie

    @JavaCodeJunkie

    2 жыл бұрын

    @SamGazer - Thank you very much for the kind words! 🙏 I am happy that you found the videos helpful! Cheers!

  • @Sam-Gazer

    @Sam-Gazer

    2 жыл бұрын

    @@JavaCodeJunkie Thank you for your concern and reply, keep up the hard work !

  • @guymann222
    @guymann22221 күн бұрын

    Great tutorial! I was wondering about what you said at 8:16, that we shouldn't expose the methods to the 'outside world.' Why is this a bad thing?

  • @kavishkamadhudhan1943
    @kavishkamadhudhan19432 жыл бұрын

    Great content. Thank you..

  • @JavaCodeJunkie

    @JavaCodeJunkie

    2 жыл бұрын

    @Kavishka Madhudhan - Thank you for the kind words! Glad you liked it!

  • @SajjadHussain-yy9xo
    @SajjadHussain-yy9xo Жыл бұрын

    Good word dear..

  • @johnkimotho3906
    @johnkimotho39063 жыл бұрын

    nice one. thanks

  • @JavaCodeJunkie

    @JavaCodeJunkie

    3 жыл бұрын

    Thank you! Appreciate the encouragement! Cheers!

  • @royalsgaming03
    @royalsgaming032 жыл бұрын

    Thanks you love from india❤️❤️❤️❤️❤️

  • @JavaCodeJunkie

    @JavaCodeJunkie

    2 жыл бұрын

    @ROYAL'S GAMING - You are very welcome! (from Canada) 🙏

  • @jefferyjohnson2612
    @jefferyjohnson26123 жыл бұрын

    This is so cool.

  • @JavaCodeJunkie

    @JavaCodeJunkie

    3 жыл бұрын

    @Jeffrey Johnson - Swing or composition vs inheritance?

  • @jefferyjohnson2612

    @jefferyjohnson2612

    3 жыл бұрын

    @@JavaCodeJunkie If you say that the composition method is best practice, then that is where I would focus long term for sure. To be entirely honest though, at this point (nooby), I don't really know or understand why it is the best practice method.

  • @JavaCodeJunkie

    @JavaCodeJunkie

    3 жыл бұрын

    @Jeffrey Johnson - It is more a general rule of thumb that you should favour composition over inheritance. In the majority of cases, especially when it comes to UI widgets, there is no good reason to extend a class (inheritance) unless you are adding additional functionality. By using composition, you can accomplish the same thing without exposing a plethora of methods as part of your public API.

  • @davidsalomon7417
    @davidsalomon74178 ай бұрын

    I think I'm lost on how you made the initialize method private, the third video doesn't mention it, do you have the source code?

  • @fatihozev1318
    @fatihozev13182 жыл бұрын

    nice video

  • @JavaCodeJunkie

    @JavaCodeJunkie

    2 жыл бұрын

    @Fatih Özev - Thanks for the visit! Cheers!

  • @randomcommentor
    @randomcommentor2 жыл бұрын

    10:21 Why "this.frame."? Why not just "frame"? The initialize() function is tied to the JFrameTwo object, and thusly you don't need to declare which object "frame" belongs to. You set the frame to "new JFrame" in the first line of the function too. Isn't "this." completely unnecessary?

  • @JavaCodeJunkie

    @JavaCodeJunkie

    2 жыл бұрын

    @Random Commentor - Strictly speaking, in this instance, the keyword this is not necessary. The most common use of the this keyword is to eliminate the confusion between class attributes and parameters with the same name. Cheers!

  • @EruCula_9475
    @EruCula_94758 ай бұрын

    You sound like Technoblade.

  • @adityakancharla
    @adityakancharla2 жыл бұрын

    Bro say EA sports 😭

  • @JavaCodeJunkie

    @JavaCodeJunkie

    2 жыл бұрын

    EA Sports???

  • @DigitalSurfz

    @DigitalSurfz

    2 жыл бұрын

    @@JavaCodeJunkie EA sports it's in the game