-
Bug
-
Resolution: Fixed
-
P2
-
5.0
-
b30
-
generic
-
windows_xp
Here is the code that demonstrates the bug.
import java.awt.*;
public class AlwaysOnTop {
public static void main(String[] args) {
Frame f = new Frame("Frame");
f.setBounds(100,100,400,400);
f.show();
// Always on Top seems to not work on Windows if the Dialog
// is modal
Dialog d = new Dialog(f,"Dialog",true);
d.setAlwaysOnTop(true);
d.setBounds(200,200,400,400);
d.show();
}
}
import java.awt.*;
public class AlwaysOnTop {
public static void main(String[] args) {
Frame f = new Frame("Frame");
f.setBounds(100,100,400,400);
f.show();
// Always on Top seems to not work on Windows if the Dialog
// is modal
Dialog d = new Dialog(f,"Dialog",true);
d.setAlwaysOnTop(true);
d.setBounds(200,200,400,400);
d.show();
}
}
- relates to
-
JDK-4775862 Cross-platform PrinterJob.printDialog gets hidden by main application window
-
- Closed
-