Re: useful Java2D bridge
Posted by
Brandon Borkholder on
Feb 17, 2012; 5:20pm
URL: https://forum.jogamp.org/useful-Java2D-bridge-tp3391708p3754350.html
On Fri, Feb 17, 2012 at 11:47, Martin [via jogamp]
<[hidden email]> wrote:
Hi,No problem to test glg2d on this app, however I unfortunately can't share the source code it will work on.
When I tried your library few month ago, I used to log Graphics2D.getClass().getName() into the renderer main draw(Graphics2D) method, and it did not seam to be any object of your library so we might work on that :).
Do you suggest any tracking/testing method?
Cheers,
Martin
That's the tricky part. In many cases I had to put a breakpoint in JComponent.paint(Graphics) to make sure my GLGraphics2D object was being passed in. It's very difficult to discover how Swing will paint a component because it varies by component and situation.
You mentioned that the issue occurred with JDesktopPane and JInternalFrames. I haven't tested with those, but I can modify my UIDemo to include those and then I'll be able to test.