On Thu, Oct 30, 2008 at 9:36 PM, Hedges, George

Hi George,

> I'd like to have a modeless javax.swing.JDialog sitting on top of the
> document's XFrame.  Is there a technique for using an XFrame as a parent
> for a JDialog?

as Juergen and Jan said, it's not possible. But you can intercept
window close command and other stuff to avoid "parent" window to be
closed when your Java window is still opened.

I wrote a prototype few months ago to test this approach. You can
download it here:

  http://senduit.com/45d282  (will be there for one week)

The only thing you need to do is to call
JavaParentWindow.attachJavaWindow( window, officeDocument ). When you
finish, call detachJavaWindow( window ).

There's OfficeDocument class used. Don't worry, it carries only XFrame
in this case. So you can exchange OfficeDocument for XFrame and adapt
remaining classes.

Feel free to do whatever you want to do with this code. But remember,
it's prototype for approach test, it needs to be finished.

Robert Vojta

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to