zoom through JButton

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

zoom through JButton

sindroide
hello everyone, I have a GLJPanel added to JFrame , that has some buttons , what I'm trying to do is using one of these buttons to perform a zomm to the draw on GLJPanel. By the way I'm doing this with gluLookAt... is it the right way?

so I have an action listener added to the button where I add 10 to z (that is used on gluLookAt on reshape method of my render), but this only works when I resize the frame with mouse, for example (while the app is running).  
Calling (on jbuttonactionperformed) reshape method of GLJPanel it doesn't work... because reshape method of my render isn't called.

how can I do this?
thanks for your help!