-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.1.5, 1.2.0
-
generic, sparc
-
generic, solaris_2.6
Wehn I create and place a Frame, it briefly shows in the top left corner of the
screen before showing in the position I place it.
Here is code fragment to show the problem
import java.awt.Dimension;
import java.awt.Label;
import java.awt.Frame;
import java.awt.Toolkit;
public class demo
{
public static void main(String[] args) {
Frame f = new Frame("Loading JavaTest");
f.add(new Label(" please stand by "), "Center");
f.pack();
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension fSize = f.getSize();
f.setLocation(screenSize.width/2 - fSize.width/2, screenSize.height/2 - fSize.height/2);
f.show();
}
}
------------------------------------
Additional info: the jumnp to (0,0) now appears to be intermittent.
Just now, I started the app and it did not jump;
now I started it again and it did jump. Perhaps there is uninitialized
data somewhere oin the Motif code.
jonathan.gibbons@Eng 1997-11-25
screen before showing in the position I place it.
Here is code fragment to show the problem
import java.awt.Dimension;
import java.awt.Label;
import java.awt.Frame;
import java.awt.Toolkit;
public class demo
{
public static void main(String[] args) {
Frame f = new Frame("Loading JavaTest");
f.add(new Label(" please stand by "), "Center");
f.pack();
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension fSize = f.getSize();
f.setLocation(screenSize.width/2 - fSize.width/2, screenSize.height/2 - fSize.height/2);
f.show();
}
}
------------------------------------
Additional info: the jumnp to (0,0) now appears to be intermittent.
Just now, I started the app and it did not jump;
now I started it again and it did jump. Perhaps there is uninitialized
data somewhere oin the Motif code.
jonathan.gibbons@Eng 1997-11-25
- relates to
-
JDK-4094630 frame moves to 0,0 when children are added
-
- Closed
-