A panel is bigger than a frame in java

I am trying to create a level editor for a platform in Java. The problem is that I need to be able to edit wide levels, maybe several screens wide, but obviously I don't want the JFrame to be so wide. How to create a panel inside a JFrame that is larger than the frame, and have a scroll bar for the panel that allows me to move around the entire panel?

Thank.

+3
source share
1 answer

you look at JScrollPane examples in a tutorial or here

+6
source

All Articles