Hello World | Java Swing Tutorial for Beginners

In this Java Swing GUI tutorial, we will learn how to create your first Java Swing GUI program, the traditional Hello World!. We will learn about SwingUtilities.InvokeLater method, the Event Dispatch Thread and how to create a Swing GUI using the JFrame class.
Check out my KZread Channel for more videos:
/ javacodejunkie

Пікірлер: 28

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

    thanks for taking the time to make this. I really like the format you have of shorter, more easily digestible videos. great work.

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

    Love this! A bit hard to find content on Swing, but luckily this is no nonsense

  • @userisnotavailable6536
    @userisnotavailable65364 ай бұрын

    Great tutorial! Ive been watching other tutorials and so far this is the best one so far

  • @generalzirx1153
    @generalzirx11534 ай бұрын

    thanks for this, cant believe its working! I hope this series makes me understand all the basics for GUI development :)

  • @orangy141
    @orangy1413 жыл бұрын

    woah nice vid i finally found someone who explains as they do and not just tell me what to type earned a sub :D

  • @JavaCodeJunkie

    @JavaCodeJunkie

    3 жыл бұрын

    @Orangy - Thank you! So cool that you like my style of teaching! Thanks for the comment and sub! Cheers!

  • @Leafycoke
    @Leafycoke11 ай бұрын

    Hi I'm from Australia! This is going to save me in my software engineering project!

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

    First Java Swing Tutorial video - leave a comment and let me know what country you are from! I'd love to hear from you! Take care and keep on coding!

  • @frankH117
    @frankH1172 жыл бұрын

    Thank you so much!! I am from Venezuela, great video man!

  • @JavaCodeJunkie

    @JavaCodeJunkie

    2 жыл бұрын

    @Frank - Happy to help! Cheers from Canada!

  • @turgutbababalm9981
    @turgutbababalm99813 жыл бұрын

    No comments? this is a really great tutorial, I was skeptical at first thinking it was a bad one due its thumbnail and low view rate but im glad i clicked, clean and on point, thanks man!

  • @JavaCodeJunkie

    @JavaCodeJunkie

    3 жыл бұрын

    @Turgut Bababalim - Thank you for the kind words! I really appreciate your comments! Just curious, what type of thumbnail gets your attention? Cheers!

  • @turgutbababalm9981

    @turgutbababalm9981

    3 жыл бұрын

    personnaly i dont really care, i just look at the views, but as someone who is has a little experiance in the commercial business, i suggest you do more flashy thumbnails, because i know for sure on youtube the tumbnail is the most important factor, not over-the-top, simple but flashy thumbnails are go-to in all of youtube.(cant say for sure but a bigger java icon and a swing icon, also some more coloring in-general), hope this helps :)

  • @JavaCodeJunkie

    @JavaCodeJunkie

    3 жыл бұрын

    @@turgutbababalm9981 - Thanks! I am a programmer and a teacher, not a graphic designer, so every little bit helps! Appreciate your advice!

  • @turgutbababalm9981

    @turgutbababalm9981

    3 жыл бұрын

    @@JavaCodeJunkie i feel you, its the same with me i allways struggle with graphic design :D

  • @JavaCodeJunkie

    @JavaCodeJunkie

    3 жыл бұрын

    @Turgut Bababalim - Thanks for the Sub!

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

    Great Content and Thank you very mush....!

  • @Sorjen108
    @Sorjen1085 ай бұрын

    Hello I have a question, to be able to position our item like jlabel, jtextfield or jbutton etc, we have to use the absolute layout, but the issue is that when we maximise the window, it does not resize itself as any other app would do. The size and position remains fixed on screen, thus it is not in good position I cannot use other layout as it is not possible to resize the item the way I want What is the solution to this?

  • @tonyscott9659
    @tonyscott96592 ай бұрын

    How did you get the menues to pupups on the right to appear, cos my Override is in white as apposed to red?

  • @thepotatoofheaven
    @thepotatoofheaven2 жыл бұрын

    When I tried this on the community eclipse version it says it's not valid swing utilities statement

  • @JavaCodeJunkie

    @JavaCodeJunkie

    2 жыл бұрын

    @the potato of heaven - Thank you for the question. Be sure that you have imported SwingUtilities. In Eclipse, the following line should be visible near the top of the Launcher.java class. import javax.swing.SwingUtilities; If it is not, you can enter it manually or organize imports using the keys CTRL+SHIFT+O Hope this helps Cheers!

  • @thepotatoofheaven

    @thepotatoofheaven

    2 жыл бұрын

    @Java Code Junkie do I need to make two classes if I'm trying to make a small button show up in Java swing? I tried importing the utilities alone but still shows red line under it

  • @JavaCodeJunkie

    @JavaCodeJunkie

    2 жыл бұрын

    @the potato of heaven - No, you do not need to make two classes. If you hover over the code with the red line, what is the message that is shown?

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

    WHAT JAVA DO YOU USE? NOTHING WORKS FOR ME.

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

    Instead of private JFrame window; do private final JFrame window;

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

    where is yoooour code??? or do you want We get it from the vid????? are u OK¡¡???