posted 8 years ago
hi Alex,
it is because you must do the painting of your image inside
a JPanel.
If you look at your 'main' method, you see that you create a JFrame,
and that is pretty much all. Your image is never drawn here.
You must create a JPanel, in which you override the 'paintComponent'
method such that you draw your image in this overridden method.
Add this JPanel to your frame. Pay attention, in that case, in what part
of your class you load the image.
Give it a try, and let us know if you encounter any problem.
Greetz,
Piet
There are three kinds of actuaries: those who can count, and those who can't.