If I Use This Way To Add image in panel
static ImageIcon bg = new ImageIcon("hangman1.png");
Then Where Should Be Mine hangman1.png should be so it display correctly??
If I Use This Way To Add image in panel
static ImageIcon bg = new ImageIcon("hangman1.png");
Then Where Should Be Mine hangman1.png should be so it display correctly??
Copyright © 2021 Jogjafile Inc.
Load your "hangman1.png" file as a resource and add it to
JLabel
:Before of that, add it into some package in your Java project.