Solved

Frame window always on top

Posted on 1997-07-22
3
850 Views
Last Modified: 2008-02-26
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
Comment
Question by:gerry99
  • 2
3 Comments
 
LVL 1

Author Comment

by:gerry99
Comment Utility
Adjusted points to 100
0
 

Accepted Solution

by:
hleungta earned 100 total points
Comment Utility
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
 
LVL 1

Author Comment

by:gerry99
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now