Skip to main content

Need help on adding support for heavyweight components in looking glass!

3 replies [Last post]
djompe
Offline
Joined: 2009-01-12

Hi,

I need for lg3d to support heavyweight components such as awt.canvas. Is this even possible? and if so how do I do it??

If its not possible to do this in lg3d, is there anyway to "convert" a canvas to something else like a JPanel??

Is there a way to get Windows OS to paint on top/inside an lg3d window or something?

thanks for the help!!!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
William Tracy

On Thu, Jan 22, 2009 at 1:01 AM, wrote:
> I need for lg3d to support heavyweight components such as awt.canvas. Is this even possible?
> and if so how do I do it??

Under Solaris and Linux, it's easy enough. :-)

> If its not possible to do this in lg3d, is there anyway to "convert" a canvas to something else like
> a JPanel??

A JPanel can do everything that a Canvas can (short of providing its
own BufferStrategy). What do you need, specifically?

--
William Tracy
afishionado@gmail.com -- wtracy@calpoly.edu
Vice President, Cal Poly Linux Users' Group
http://www.cplug.org

"I disapprove of what you say, but I will defend to the death your
right to say it."
-- Evelyn Beatrice Hall, frequently mis-attributed to Voltaire

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

Brian Demers

I think this is more of a generic question. For example some native API's
write directly to the Canvas. So getting those in lg3d, has been a little
more then difficult.

For example trying to use a Mozilla browser component inside a lg3d app.
(the embeded component)

On Thu, Jan 22, 2009 at 11:08 AM, William Tracy wrote:

> On Thu, Jan 22, 2009 at 1:01 AM, wrote:
> > I need for lg3d to support heavyweight components such as awt.canvas. Is
> this even possible?
> > and if so how do I do it??
>
> Under Solaris and Linux, it's easy enough. :-)
>
> > If its not possible to do this in lg3d, is there anyway to "convert" a
> canvas to something else like
> > a JPanel??
>
> A JPanel can do everything that a Canvas can (short of providing its
> own BufferStrategy). What do you need, specifically?
>
> --
> William Tracy
> afishionado@gmail.com -- wtracy@calpoly.edu
> Vice President, Cal Poly Linux Users' Group
> http://www.cplug.org
>
> "I disapprove of what you say, but I will defend to the death your
> right to say it."
> -- Evelyn Beatrice Hall, frequently mis-attributed to Voltaire
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
> For additional commands, e-mail: interest-help@lg3d.dev.java.net
>
>
[att1.html]

William Tracy

On Thu, Jan 22, 2009 at 9:10 AM, Brian Demers wrote:
> For example trying to use a Mozilla browser component inside a lg3d app.
> (the embeded component)

Ah.

I don't see that working on Windows, short of some major patches to lg3d.

--
William Tracy
afishionado@gmail.com -- wtracy@calpoly.edu
Vice President, Cal Poly Linux Users' Group
http://www.cplug.org

"I disapprove of what you say, but I will defend to the death your
right to say it."
-- Evelyn Beatrice Hall, frequently mis-attributed to Voltaire

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net