You need to override the method paintComponent(Graphics g)
of JPanel and use drawImage()
on the Graphics object g
as in this example.
Also, check these two examples by @trashgod:
- example.
- example.
You need to override the method paintComponent(Graphics g)
of JPanel and use drawImage()
on the Graphics object g
as in this example.
Also, check these two examples by @trashgod: