The code does not compile because the Terning class is missing.
When I remove that line and put in my image file, the code compiles and shows the image.
Make sure the image is in the folder where...
Type: Posts; User: Norm
The code does not compile because the Terning class is missing.
When I remove that line and put in my image file, the code compiles and shows the image.
Make sure the image is in the folder where...
Can you explain what your problem is?
The paintComponent method can be called many times. You should read the image file outside of the paintComponent method so it is only read one time.