Login  Register

Re: Mac OS X 10.7+ / Oracle JRE 7 : Swing integration issues

Posted by Sven Gothel on Jan 13, 2013; 4:10pm
URL: https://forum.jogamp.org/Mac-OS-X-10-7-Oracle-JRE-7-Swing-integration-issues-tp4027780p4027808.html

On 01/13/2013 06:19 AM, Gene [via jogamp] wrote:
> Hi Sven,
>
> This is the same as my problem:
> http://forum.jogamp.org/Mac-OS-X-10-8-Java-7-Poor-Animation-and-Lockups-tt4027723.html
>
Bug 664 - yes, it's reproducible.
Sadly I was busy with Exclusive Context Thread (ECT) feature,
  <http://jogamp.org/git/?p=jogl.git;a=commit;h=224fab1b2c71464826594740022fdcbe278867dc>

But we cont. walking through the bug list.

> This also appeared with Oracle JRE 7 and OS X 10.7.  
>
> I know z-ordering is complicated, but setVisible(false) as used in JTabbedPane
> and CardLayout ought to be doable.  No?

See above & maybe.

>
> We are shipping this year's Mac edition of our app with JOGL features disabled
> due to this problem.

Well, sorry for that. If you only offer one release per year, nothing we can do about it.

Best and stable experience is w/ using NEWT
and NewtCanvasAWT (to attach it to an AWT component).

In case you
need Swing z-stacking / compositioning, pls use GLJPanel.
GLJPanel should work out of the box w/ Swing anyways, even though it's
performance is not best due to the FBO offscreen -> Image copy.

Heavyweight AWT GLCanvas usually works fine, in a heavyweight AWT tree .., well.

Last but not least, one could query the platform via
using com.jogamp.common.os.Platform and check OS_TYPE etc,
if carefully validated that a feature does work one way on certain systems.

Of course, I don't like this approach either but hope w/ diligent bug walking
those hiccups will be solved soon. Of course, this also requires Java7 on OSX
to become more stable as well.
On the latter platform, we still see freezes and JVM crashes every now and then
and I would only mark it 'experimental' and not 'production ready'.

~Sven

>
> Thanks,
> Gene


signature.asc (911 bytes) Download Attachment