Hi,
It sounds simple but you could implement the FocusListener interface in your
3D app so that whenever it loses focus it requests it again. This should
work if my3DWindow is a JFrame or JApplet (or any other class that extends
component). I've only used this to control the focus between different
components within one frame but I think it could work for multiple windows
too.
hope it's some help,
Ewan
public class MyClass implements FocusListener
{
// Put this line somewhere in your constructor after my3DWindow has been
created
my3DWindow.addFocusListener(this);
... Your code
// FocusListener methods
// If focus is gained do nothing
public void focusGained(FocusEvent fe) {}
// If focus is lost request it back again
public void focusLost(FocusEvent fe)
{
if (fe.getSource() == my3DWindow)
my3DWindow.requestFocus();
}
} // End of MyClass
----- Original Message -----
From: "Grace S" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 13, 2002 3:07 PM
Subject: [JAVA3D] swing popup window
> Hi,
> My main application is created using java3D, but I have Swing popup
windows.
> How can I ensure that focus will remain with the Java3D application,
when
> a swing popup window is loaded?
>
> Thanks
> Grace
>
> _________________________________________________________________
> 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".
>
===========================================================================
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".