Title: RE: [JAVA3D] Overlay example?

Dave,

I am interested in doing something similar to what you describe.  I have some components that I want to have appear on top of a Java 3D canvas.  So I have added these components to a JWindow object, but it still does not quite work correctly.  Some questions:

1) How do I position the JWindow relative to the top left corner of the canvas?  I want the JWindow to follow the canvas if the main window (containing the canvas and the JWindow) is moved.

2) How can I keep the JWindow on top at all times?  Right now, if I click the canvas, it comes up to the top, obscuring the components on the JWindow.

I guess that both of these questions can be summarized as "how do I assign a canvas as the parent of a JWindow?"  I agree that this does not result in a "true" overlay, but it seems like it would work well in many cases.  Thanks!

- Mauricio Vives

-----Original Message-----
From: Yazel, David J. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 12:24 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Overlay example?


Well to be honest the last time I explained to someone what we are doing
they called it a "hack" and "useless", so I generally don't give that as an
option.  It seemed clear to me that Corysia is looking for *true* overlay,
allowing her to alpha blend text and images into the screen, and place
non-rectangular objects on the screen.  A HUD requires that capability.
What we are doing is hovering JWindow's over the canvas3d and placing our
interface objects in the JWindows.  JWindows are nice because they are
borderless, allowing us to control their appearance to match the "look" of
our application.  But they are square, and they cannot be blended into the
scene, hence they are not a true overlay.

Dave Yazel

Reply via email to