As the title suggests, I have a problem here. I have a fairly large application now, and am trying to implement a changing canvas size. Don’t ask why, but it’s necessary.
I keep getting this error “Unable to lock surface”, and I have read ( in this forum in fact ) something about the canvas already being part of the frame being required. Also, that this problem is a bug in jogl, and is largely undocumented. Thus, I am rather in the dark here, and am looking for help. I can post code if required, but it’s simply a glcanvas that is placed in a JPanel, which is then placed into an extended JFrame.
And I am trying to resize the glCanvas by a button in the gui, so the app is already running.
help please!