As the title suggests, I’m making a game where there is a map, the map is of course bigger than could fit on the screen as most RTS games 🙂
So, any suggestions on how to go about this?
The map is a big JFrame with images drawn on it.
As the title suggests, I’m making a game where there is a map, the
Share
Now I changed my map (former JFrame) to a JPanel, adding it to a JScrollPane that is added to the contentPane of the JFrame, see code below:
Now what happens is the Board shows up, with all cells at the right places, I can interact with the map as usual, but no scrolling to be seen anywhere.
Pointers or solution?
<3