how to implement automatically resizeable GLwindow??

Hello,

iam working on java and opengl.for this i need an automatically resizeable openGL window in a java split pane.

i donot know how to do it??
plz help me.
any code would be highly useful…

vamsee

I’m assuming java has a callback functionality like most windowing api’s. Whenever a window changes size(programatically or by user) some message/event should be sent to your callback function/class. When received make appropriate API calls(projection,viewport,scissor etc).