Hello, JGO community.
I’ve been looking for solution a whole day yesterday, but found none. Basically I have window which is 800x600 and my tiled map is 30x30 (each tile is 32x32). I want to be able to scroll through my map using JScrollPane. I’ve looked in this thread, but Mr_Light’s solution doesn’t work for me. I’ve wrapped the JPanel in the JScrollPane, and I also forced those slide bars to always be visible, but I can do nothing with them.
Here is the screenshot of level editor’s JPanel:
http://imageshack.us/a/img842/9596/tiledmapleveleditor.png
NOTE: Tiles were drawn by me, so please don’t steal them.
Thank you, in advance, to anyone who tries to help me!