Thank you very much all of you, I presumed that the location of image file didn't matter..., now it displays all good.
:)
Type: Posts; User: ice
Thank you very much all of you, I presumed that the location of image file didn't matter..., now it displays all good.
:)
Hi relixus
Thank you very much for your advice, I tried to replace "Icon icon = new ImageIcon("Poppy.jpg")" with yours "Icon icon = new ImageIcon(getClass().getResource("Poppy.jpg"))", then ran it...
Hello guys
Below code mean to display a button with an image on it, the image is real in my computer, but it only displays a blank button. Do you know why?
Many thanks
package brainydraw;...