I'm trying to make a level editor for a platformer in Java. The issue is that I need to be able to edit wide levels, possibly multiple screens wide, but obviously I don't want to make a JFrame that is that wide. How can I make a panel inside the JFrame that is larger than the frame, and have a scroll bar for the panel that allows me to navigate the entire panel?
Thanks.
you have look at JScrollPane examples in the tutorial or here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With