GLJPanel scrolling

Hello,

I’m developping a program that will draw a function’s curves in 2D plane. So for that reason I used : gl.glMatrixMode(GL.GL_PROJECTION), gl.glLoadIdentity() and glu.gluOrtho2D(xmin, xmax, ymin, ymax) functions.
So I have something like this


| |y |
| | |
| |--------------|----->x
| |0 | o<-- HERE
| | |
| ________ |

for coordinates system on the screen. When I’m drawing a curve the result is good but I would like to go further to the X axis … I think that I have to use some kind of scrolling tools, but I can’t understand where to put the scroll bar.
My programm is constructed like that:
First I have a JDesktopPane, insite it I have a JInernalFrame and over the internal frame I have a GLJPanel and that is where I’m drawing the curves.
So on whitch component I have to put the scroll bar so to be able to see what is on the “HERE” ?
Or may be the solution is totaly different, before to use the gluOrtho2D, I used gluPerspective and I was moving the glLookAt over the X axis. But with the orthogonal projcection this method doesn’t work anymore.

Regards,

Anton