Issue
I'm using NetBeans 7.1 to code in Java. I have already created a JFrame
filled with some labels, textbox and buttons
. How can I do to import some image (JPG,PNG,etc...)
from my PC into the same JFrame
? On an specific location of the frame.
Solution
- Open the form in NetBeans form editor.
- Add a
JLabel
from the pallete to the form - Select the label you just added and click the "..." button next to the
icon
property - Fill out the properties.
It's normally best that the images reside within the project folder, makes deployment easier in the long run.
Answered By - MadProgrammer
Answer Checked By - Cary Denson (JavaFixing Admin)