PApplet in JScrollPane
in
Integration and Hardware
•
2 years ago
Hi,
I'm trying to embed a PApplet in a JScrollPane within a JFrame, so that I can properly work on sketches that are larger than my screen. I tried embedding the PApplet in a fixed size JPane, but I can't get that to render properly, and when I simply display the PApplet within the JScrollPane, the PApplet ignores whatever size I set it at and instead assumes whatever size the JFrame is.
Has anyone else tried to do anything like this successfully? I'm open to any ideas, I'm just trying to create some type of scrolling capability.
controlP5 might be an option, but I'm working in a larger framework created in Java and I'm trying to maintain a consistent look and feel.
I'm trying to embed a PApplet in a JScrollPane within a JFrame, so that I can properly work on sketches that are larger than my screen. I tried embedding the PApplet in a fixed size JPane, but I can't get that to render properly, and when I simply display the PApplet within the JScrollPane, the PApplet ignores whatever size I set it at and instead assumes whatever size the JFrame is.
Has anyone else tried to do anything like this successfully? I'm open to any ideas, I'm just trying to create some type of scrolling capability.
controlP5 might be an option, but I'm working in a larger framework created in Java and I'm trying to maintain a consistent look and feel.
2