I’d like to use GLJPanel inside a JScrollPane for a game level editor. This seems to be very easy if I just put the GLJPanel inside the JScrollPane and set the preferred size of the GLJPanel to the size of a level. But since levels might get quite large I’m worrying a little about performance. Maybe I’d better implement scrolling myself using a JPanel with 2 JScrollBars and a custom layout? Any hints?
Yes, it would be better not to use a Scrollpane. I also would not use scrollbars at all, but navigate by keyboard movements linke an FPS or mouse dragging like in Black & White.