0

I'm making a game using swing with a JPanel for level selection and JButtons set up for navigating to the levels. I've also created a .png image for the entire level screen - is it possible to render the image on top of the JButtons? If not, what's the simplest alternative?

Leirion
  • 1
  • 2

1 Answers1

0

I'm not sure if what you want to do is possible, but my approach has usually been to use a mouse listener instead. Just check for clicks within a certain area handle them.

JShell
  • 624
  • 2
  • 7
  • 22