Hi,

If you want the main window of the application to remain in foreground,
you will
have to call mainWindow.toFront() after childWindow.setVisible(true)
when processing the key event.


Grace S wrote:
>
> Hi,
> I have a Java 3D application, when I press the ‘F1’ key, a swing GUI is
> displayed.  But I want the focus to remain with the main 3D application and
> not switch to the swing gui when it is loaded,
> How can I do this
>
> Thanks
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

--
_____________________________________________________
Octavian Nasarimba         Tel. +49 711 / 96 72-113
KLEIN+STEKL GmbH           Fax  +49 711 / 96 72-1 30
Heusteigstrasse 41         http://www.klst.com
70180 Stuttgart/GERMANY    mailto:[EMAIL PROTECTED]
Amtsgericht Kirchheim/Teck HRB 180

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to