swing - Why isn't this working to set the Java Applet always on top? -


i trying set window of java applet on top doing following.

is there better way set window on top?

the print statements put in check give true, window isn't on top.

window[] windows = window.getwindows(); system.out.println(windows.length); window appletwindow = windows[0]; window otherwindow = windows[1]; system.out.println(appletwindow.isalwaysontopsupported()); system.out.println(otherwindow.isalwaysontopsupported()); appletwindow.setalwaysontop(true); otherwindow.setalwaysontop(true); system.out.println(appletwindow.isalwaysontop()); system.out.println(otherwindow.isalwaysontop()); 


Comments