Login  Register

Re: Can I put awt components over part of a GLCanvas?

Posted by Sven Gothel on May 19, 2010; 1:23am
URL: https://forum.jogamp.org/Can-I-put-awt-components-over-part-of-a-GLCanvas-tp827759p827968.html

On Wednesday, May 19, 2010 01:25:23 John V. [via jogamp] wrote:
>
> I have an applet that uses a GLCanvas.  I'd like to put an awt Panel over
> part of the canvas.  So far, it looks like I can't get other awt components
> to appear over the canvas.  (But I could just be doing something wrong.)
>
> Before I go too much farther, I figure I should stop and find out if what
> I'm trying to do is even possible.

John .. GLCanvas is just like an AWT Canvas, hence not a AWT Container,
ie you cannot put things in ..

Well .. you could have a window on top of the GLCanvas (or whatever) sure ..

Maybe you like to try NEWT ?
With it's new parenting mechanism .. you could do things like that,
but I don't really see the necessity for such a thing,
since you could achieve many feature via GL rendering, viewport, stencil buffer,
scissors ..

~Sven