• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 902
  • Last Modified:

Frame window always on top

I'd like to know if there is a way to keep a Frame window
always on top in an applet.  My applet runs as a Frame an
opens several other frames that I'd like to keep on top.

I'm aware that Window has toBack and toFront methods.  When
would I call the toFront?
0
gerry99
Asked:
gerry99
  • 2
1 Solution
 
gerry99Author Commented:
Adjusted points to 100
0
 
hleungtaCommented:
I got the same problem: i wanted to display "modal " frame from applet.
I'm calling toFront() when my frame is losing the focus. If the
user wants to close the frame, i'm setting a flag so that toFront() is not called.

0
 
gerry99Author Commented:
I tried this, and it works for Netscape Commincator 4.0, it does not work with IE 3.02.  (Because microsoft's implementation of the method "toFront" is broken.)

While the techique works, with Netscape toFront also grabs the focus again, so this would only be useful for modal dialogs.  I had hoped to use it for non-modal information windows.  Oh well.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now