Solved

Frame window always on top

Posted on 1997-07-22
3
890 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Author Comment

by:gerry99
ID: 1223645
Adjusted points to 100
0
 

Accepted Solution

by:
hleungta earned 100 total points
ID: 1223646
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
ID: 1223647
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

695 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