Re: GLCanvas in JTabbedPane
Posted by nick.collier on Apr 08, 2013; 4:19pm
URL: https://forum.jogamp.org/GLCanvas-in-JTabbedPane-tp4028899p4028939.html
I've written a unit test for this, but have a few questions. I looked through the other unit tests and I don't see a lot of assertEquals etc. So, I'm wondering how to structure the test so its useful to you. Also, I noticed that relying on canvas.isVisble() to test whether the canvas remains in front when it should be in the back doesn't work. I've got two tabs -- one with gl gears in it and the other with a simple JLabel. If I begin with the gl gears showing and switch to the label tab, the gl gears canvas remains in front, but canvas.isVisible returns false. Any suggestions on how to properly determine that it is or is not actually visible would be appreciated.
thanks,
Nick