Adding Text and Images with Labels - Intro to Java Swing GUIs

Поділитися
Вставка
  • Опубліковано 18 тра 2024
  • In this Java Swing Tutorial we will go over JLabel a display area to display texts and images on to your Swing GUI.
    🔗Links:
    1. Earth Picture: drive.google.com/drive/folder...
    2. JFrame Video: • Creating a Window with...
    See more of my content below:
    🩳 Shorts Playlist: • Shorts
    ☕ Java Playlist: • Java Swing Series
    🍵 JavaFX Playlist: • JavaFX Series
    ------------------------------SOCIAL------------------------------
    🐱‍🚀 Github: github.com/curadProgrammer
    Extra Tags:
    java project
    java swing project
    java swing framework
    java swing gui
    java gui
    java graphical user interface
    java desktop application
    java basics
    java programming language
    java school projects
    java swing example
    java beginner projects
    java easy projects
    java swing tutorial for beginners
    desktop application
    speed coding

КОМЕНТАРІ • 36

  • @TapTap_196
    @TapTap_196  11 днів тому

    Github: github.com/curadProgrammer/Java-Swing-Tutorial/tree/main/jlabel
    Try out CodeCrafters & and get 40% off! 👉 app.codecrafters.io/join?via=taptap

  • @MBRBLB
    @MBRBLB Годину тому

    Hey man, you're practically the best creator that I can find for Java Swing, and I really wanted to ask you. For some reason, whenever I use imageIcons for any reason whatsoever, they never actually show. The imageIcons never actually load for some reason at all. Any idea on why that would happen?

  • @KeepsCoding
    @KeepsCoding 13 днів тому

    Love the way you explain things. I did know about Writing HTML in labels from your Weather App video.
    Keep it up 👍❤

  • @Abdurahman-rp4qn
    @Abdurahman-rp4qn 14 днів тому

    Men, you are helping me with me exams a lot!!! You are the best!!! I also love and want mechanical keyboard!

    • @TapTap_196
      @TapTap_196  14 днів тому

      Glad to help 😁, and you can probably get one cheap around $30 on AliExpress to TikTok shop

    • @Abdurahman-rp4qn
      @Abdurahman-rp4qn 12 днів тому

      @@TapTap_196 Actually I was doing java applications for my classmates, people from other classes and eventually I had accumulated 101,39 $. That was crazy work, but now I am ready to buy the keyboards like keyrox, keronch etc. I would be very thankful, if you will help me with the choice. (i want quite switches like brown and cool interaction, like usability I mean)

    • @Abdurahman-rp4qn
      @Abdurahman-rp4qn 12 днів тому

      @@TapTap_196 Also, I am your fan from Kazakhstan

    • @TapTap_196
      @TapTap_196  11 днів тому

      @@Abdurahman-rp4qn I appreciate your support 😀

  • @user-ji1kk9bx3u
    @user-ji1kk9bx3u 7 днів тому

    Bro, I started learning Java! I don’t know if you remember me, but I wrote to you about half a year ago (it was in winter) that I’m currently writing in Python, but I’m planning to switch to Java, and now I’m already learning Java! And I really like this beautiful language

    • @TapTap_196
      @TapTap_196  День тому

      Oh yeah I remember and Nice! and hope you enjoy the journey 😀

  • @Jhontas69
    @Jhontas69 14 днів тому +1

    Simplesmente incrível. 🗿🍷

  • @francescomoscufo4055
    @francescomoscufo4055 14 днів тому

    Nice!

    • @TapTap_196
      @TapTap_196  14 днів тому +1

      I appreciate it 😁

    • @francescomoscufo4055
      @francescomoscufo4055 10 днів тому

      @@TapTap_196Which theme are you using?

    • @TapTap_196
      @TapTap_196  10 днів тому +1

      @@francescomoscufo4055 I am currently using the New UI of IntelliJ + Monocai Theme (plugins.jetbrains.com/plugin/12163-monocai-color-theme)

  • @shubham_paliwal
    @shubham_paliwal 14 днів тому

    Thanks for letting me know that we can use html in swing framework 🌟😊

    • @TapTap_196
      @TapTap_196  14 днів тому +1

      No problem 😀

    • @shubham_paliwal
      @shubham_paliwal 14 днів тому

      @@TapTap_196 😊, can we also use other things with Swing, like to style and provide functionality to the HTML?

    • @TapTap_196
      @TapTap_196  13 днів тому

      ​@@shubham_paliwal​I'm not exactly sure, but I think Swing only supports the use of the HTML tags so you won't be able to style or add functionality to them.
      To add functionality we can use an event listener like ActionListener or MouseListener and for style we have to use the Swing methods like the setForeground() to change the color of the font, setFont() to change the font, and etc...

    • @shubham_paliwal
      @shubham_paliwal 13 днів тому

      @@TapTap_196 Okay, wish it supported them 😅.

    • @TapTap_196
      @TapTap_196  13 днів тому +1

      @@shubham_paliwal Yeah me too 😓, but I think if you truly want to use CSS, JavaFX does support them but its a bit limited I think.

  • @DevanshSaxena-wz3op
    @DevanshSaxena-wz3op 3 дні тому

    Please also cover all Custom components in Java swing.

    • @TapTap_196
      @TapTap_196  День тому +1

      Hello, and yeah I plan on doing that 😀

  • @melkor1177
    @melkor1177 14 днів тому

    you should explain how images are scaled and how their sizes matters

    • @TapTap_196
      @TapTap_196  13 днів тому

      Oh yeah I should've done that 😓

  • @MatthewLitwiz
    @MatthewLitwiz 14 днів тому

    I always forget it's JLabel to set the icon but i keep accidentally doing JPanel thinking it would work, i would think JLabel then realize its for text and then realize JPanel is a panel and you can't seticon

    • @JensMeier-yd3jv
      @JensMeier-yd3jv 14 днів тому

      English?

    • @MatthewLitwiz
      @MatthewLitwiz 14 днів тому

      @@JensMeier-yd3jv sorry it was in spanish

    • @JensMeier-yd3jv
      @JensMeier-yd3jv 14 днів тому

      @@MatthewLitwiz Xd, didn't understand a word! :)

    • @MatthewLitwiz
      @MatthewLitwiz 14 днів тому

      @@JensMeier-yd3jv if you had coding experience and didn't understand then it's concerning, but if your just getting into coding then I understand coding can be very complicated and hard to understand, coding is basically speaking another language but you can only talk to the computer, you ain't just gonna go up to a human and say open ComboBox or JDialog

    • @TapTap_196
      @TapTap_196  13 днів тому

      Oh yeah I can see that. I wonder if instead you can add the ImageIcon directly to the JPanel 🤔