Advertisement

05.28.2008 at 01:57AM PDT, ID: 23437369
[x]
Attachment Details

Jframe window wont come to front under linux - works ok in windows

Asked by Lamont77 in Java Programming Language

Tags: ,

Hi,

I have an application that opens a new Jframe.  If the user does a selected action a new tab is open in the same jframe window.

However when teh new tab is created the jframe will not come to the front of the screen when running under linux.  The window has focus - I can type into it and its highlighted in the taskbar but it will not come to the front automatically.

However it works ok when run in XP.

Any ideas?

Im using code similar to this:

 ownerFrame.toFront();  //ownerFrame is the JFrame

have also tried setting:

ownerFrame.alwaysOnTop(true) and then back to false but the problem persists.

Start Free Trial
 
Keywords: Jframe window wont come to front un…
 
Loading Advertisement...
 
[+][-]05.28.2008 at 02:19AM PDT, ID: 21658803

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Programming Language
Tags: Java, Linux
Sign Up Now!
Solution Provided By: ksivananth
Participating Experts: 2
Solution Grade: B
 
 
[+][-]05.28.2008 at 06:45AM PDT, ID: 21660314

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628