-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b58
-
generic
-
windows
If always-on-top frame has a child dialog, it loses its always-on-top property. The following simple test demonstrates the problem:
import java.awt.*;
import java.awt.event.*;
public class AlwaysOnTopTest
{
public static void main(String[] args)
{
Frame g = new Frame("AOT Frame w/o child");
g.setBounds(000, 000, 200, 100);
g.setAlwaysOnTop(true);
g.setVisible(true);
Frame f = new Frame("AOT Frame");
f.setBounds(100, 100, 200, 100);
f.setAlwaysOnTop(true);
f.setVisible(true);
Dialog d1 = new Dialog(f, "Non-AOT modeless Dialog", false);
d1.setBounds(200, 200, 200, 100);
d1.setVisible(true);
}
}
The only difference between frames f and g is that there is a child dialog d1 for frame f. This leads to f to be not always-on-top.
###@###.### 2005-03-29 11:48:59 GMT
import java.awt.*;
import java.awt.event.*;
public class AlwaysOnTopTest
{
public static void main(String[] args)
{
Frame g = new Frame("AOT Frame w/o child");
g.setBounds(000, 000, 200, 100);
g.setAlwaysOnTop(true);
g.setVisible(true);
Frame f = new Frame("AOT Frame");
f.setBounds(100, 100, 200, 100);
f.setAlwaysOnTop(true);
f.setVisible(true);
Dialog d1 = new Dialog(f, "Non-AOT modeless Dialog", false);
d1.setBounds(200, 200, 200, 100);
d1.setVisible(true);
}
}
The only difference between frames f and g is that there is a child dialog d1 for frame f. This leads to f to be not always-on-top.
###@###.### 2005-03-29 11:48:59 GMT
- relates to
-
JDK-6236247 REG: Always-On-Top does not work when pack is called on a child window - Win32
-
- Closed
-