Daniel Naber wrote:
Hi,
I'd like to create a Java dialog that's modal, i.e. that is always on top
of my Writer window. Currently my code is this:
dialog = new JDialog();
dialog.setModal(true);
But that dialog isn't modal, probably because it doesn't know its
parent/owner. I'd like to use the following constructor, but what do I put
in as owner?
JDialog(Frame owner, boolean modal)
Regards
Daniel
Hi Daniel,
you are right. To create a Java Dialog you need a Java Frame as a
Parent. Unfortunately OpenOffice can only deliver native frames, which
therefor cannot be used for this purpose.
You could consider to create an Uno-AWT dialog that many of the
OpenOffice assistants already use.
Documentation can be found under
http://api.openoffice.org/docs/DevelopersGuide/BasicAndDialogs/BasicAndDialogs.xhtml
This chapter of the DevelopersGuide deals with dialog creation by means
of OpenOffice.org Basic. A chapter that describes a language independent
approach is in work.
Examples that use these Uno-AWT Dialogs can be found under.
http://installation.openoffice.org/source/browse/installation/wizards/com/sun/star/wizards/ui/
Best regards
Berend
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]