Scrolling GLJPanel

Is there any good way to scroll a GLJPanel, something similar to

GLJPanel panel = GLDrawableFactory.getFactory().createGLJPanel( capabilities );
JScrollPane scroll = new JScrollPane( panel );

This compiles, but no scrollbar apears.

Should I extend GLJPanel and make it implements Scrollable? Is it possible? This way it seems to break the Factory pattern of the GLJPanel (if it works at all…).

Or, If my ideas above are totally crazy :P, the way to do it would be implementing scrolling from scratch ???

Hi,
Just a simple guess but… have you tried to set preferred, minimum and maximum size for your Panel before adding it to the Scrollpane?

[quote]have you tried to set preferred, minimum and maximum size for your Panel before adding it to the Scrollpane?
[/quote]
Yes, I tried with and without it, with the same result :’(

And i suppose that forcing scrollbar policy doesn’t help!

But maybe you can use a trick… I mean use a scrollbar with values that match your bounds and link the events to the scroll bar to a change into your opengl world to display the desired section…