I want to add background image to my JApplet application. But it doesn't work. Background is still gray. I tried to use the same JPanel class with normal application and it works. Why with JApplet I can't do this task?
In JPanel I'm using paintComponent() method. If I for example change panel's colour in constructor, then everything works fine, but when I try to drawImage in paintComponent, program breaks.
In JPanel I'm using paintComponent() method. If I for example change panel's colour in constructor, then everything works fine, but when I try to drawImage in paintComponent, program breaks.