Java Tutorial 36 (GUI) - Adding an Image by using JLabel

preview_player
Показать описание
Java Tutorial 36

This topic will make you understand on how to add an image on to the screen of the program.
Рекомендации по теме
Комментарии
Автор

THANK finally a short and sweet explanation, keep up the awesome work bud, :D

AdrienSanctioned
Автор

Thank you man! Keep up the good work and may the good blood guide your way.

yamayamayama
Автор

The best method ever found on internet:) Very short and smart!

DaivaDarpana
Автор

You are the best sir, I have seen a lot of tutorials but they either use netbeans' gui draw or they use bufferedimage which is cumbersome. But this uses an efficient method of using imageicon. Thanks a lot this is going to be very useful for my project.

dharshana.n.
Автор

Thank you u so project is almost done!!!

ronaldoazarcon
Автор

you are the best! the validate() method save my time!!!thanks a lot!

MrPoime
Автор

Thanks!!! I'm a beginner and this help is very good!!!! :)

joicemara
Автор

How do you set the label's visibility to false in another method like the key pressed method?

prestonlewis
Автор

Thanks a lot!! You just saved my Day:)

harshabhushan
Автор

is there any function or method to clear our frame components when user click the clear button i dont say to remove

BakhtyarQadri
Автор

is it possible to tell java to place the picture in a certain place? if so, how?

anshulbarnwal
Автор

+John Gizdich Thanks man! Big help, it worked, But I'm not finding a way to make it combatable with a container, I added the buttons, label etc, to the jpanel but they still don't appear / work, pls help!

LegoLeon
Автор

Ok it worked well. I made a JFrame (300x400), JLabel(300x400) but I want to add 3 JButtons on top of the label, is this possible?

Phughy
Автор

Can someone please help me with this! I am having such a hard time trying to show my image in a menu for a game.... I know this is one of the easiest parts to a game but I have no idea why it's not working!

awesomedrummerkid
Автор

i have create folder in my project directory but the pic is not going to appear

sisteminformasi
Автор

why is it that when i exported my project and executed it in other computer. all of the images used were gone.

giripog
Автор

When I put in the validate statement, I need to create a new method but that doesn't effect anything

TechnologyGeekify
Автор

SIR HOW CAN I RESIZE THE IMAGE? PLEASE REPLY ASAP

andrespimenteljr.
Автор

Can you teach us how to Use the buttons?

XBionicMC
Автор

Need to have the same picture in the same directory

SilentFox