Sign in to follow this  
Antony52

[java] JFrame question.

Recommended Posts

When we have two programs open, lets say Word and IE. When we choose one the other is overlapped by the other. I have two JFrames opening by I want one of them to stay in the foreground all the time. Is there a method doing this? Thanks.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
frame.setAlwaysOnTop(true);

Note that it was added in Java 5.0.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this