Jwindow behaves differently in jdk1.5

Hi,

I created a splash screen using jwindow. In the earlier versions of jdk the splash screen (Jwindow component) can be moved back and i was able to switch to other applications. But when i used jdk 1.5 the Jwindow stays on top and even if i switch to other applications it remains on top. how can i resolve this ? Is there any change in the behavior of the JWindow in jdk 1.5. This is urgent can any one help?

Regards,

Jonny

[451 byte] By [jonnybesta] at [2007-10-2 21:12:17]
# 1

this works fine in 1.5.0_05

can alt-tab anywhere

class Testing

{

public static void main(String[] args)

{

javax.swing.JWindow window = new javax.swing.JWindow();

window.getContentPane().add(new javax.swing.JLabel("Hello World"));

window.setLocation(400,300);

window.setSize(200,200);

window.setVisible(true);

}

}

Michael_Dunna at 2007-7-13 23:58:36 > top of Java-index,Desktop,Core GUI APIs...
# 2

Hi,

Thanks a lot for your valuable suggestion

I tried some different versions and found that this problem occurs in jdk 1.5.0_03. Even in jdk 1.5.0_04 and also in lower versions like jdk1.3 and jdk 1.4_0*, i don't face this issue. So is it a bug in jdk 1.5.0_ _03 ? If so can any one point me the bug id for this issue.

Regards,

Jonny.

Message was edited by:

jonnybest

jonnybesta at 2007-7-13 23:58:36 > top of Java-index,Desktop,Core GUI APIs...
# 3
window.setAlwaysOnTop(false);
tstera at 2007-7-13 23:58:36 > top of Java-index,Desktop,Core GUI APIs...
# 4
> window.setAlwaysOnTop(false);hi,Thanks .....but this way it won't work in jdk1.5.0_03 and still the same issue occurs in this version. I have tried this already.....Can any one help me in this regard...Regards,Jonny.
jonnybesta at 2007-7-13 23:58:36 > top of Java-index,Desktop,Core GUI APIs...
# 5

if having the app show up in the task bar is not a problem, you could use a

JFrame, then setUndecorated(true); so it will look like a JWindow.

Otherwise, this is just a stab in the dark, but worth a try

(uses a JFrame parent, but doesn't show in the task bar)

import javax.swing.*;

class Testing

{

public static void main(String[] args)

{

JWindow window = new JWindow(new JFrame(){

public boolean isShowing(){return true;}});

window.getContentPane().add(new javax.swing.JLabel("Hello World"));

window.setLocation(400,300);

window.setSize(200,200);

window.setVisible(true);

}

}

Michael_Dunna at 2007-7-13 23:58:36 > top of Java-index,Desktop,Core GUI APIs...
# 6

Still no change in the behaviour even with the following code

import javax.swing.*;

class Testing

{

public static void main(String[] args)

{

JWindow window = new JWindow(new JFrame(){

public boolean isShowing(){return true;}});

window.getContentPane().add(new javax.swing.JLabel("Hello World"));

window.setLocation(400,300);

window.setSize(200,200);

window.setVisible(true);

}

}

swamina at 2007-7-13 23:58:36 > top of Java-index,Desktop,Core GUI APIs...