Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Panel larger than frame in java

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.

like image 955
jix Avatar asked May 27 '26 16:05

jix


1 Answers

you have look at JScrollPane examples in the tutorial or here

like image 100
mKorbel Avatar answered May 30 '26 02:05

mKorbel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!