|
Quick Lists
|
|
Bug ID:
|
4147333
|
|
Votes
|
1
|
|
Synopsis
|
Frames appear in top left hand corner
|
|
Category
|
java:classes_awt
|
|
Reported Against
|
1.1.6
|
|
Release Fixed
|
|
|
State
|
11-Closed, duplicate of 4102292,
bug
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
4102292
|
|
Submit Date
|
10-JUN-1998
|
|
Description
|
Frames appear at top left
A frame is displayed in the top left corner if no location is
specified whereas in m114 it is displayed in a default location.
Defect 3616 considered a similar problem in which a frame is displayed
in the top left corner if it is resized immediately after showing.
This was not fixed in the JDK but a workaround was suggested in which
adding a delay between the show and resize fixes the problem. In m116
this workaround no longer works. The frame is always displayed in the
top left corner.
Run the test case below to demonstrate. It creates 10 frames and
resizes them immediately after showing. For frames 6 through 10 there
is a delay between the show and resize. In m114 the first 5 are
displayed in the top left corner and the second 5 are displayed in their
proper locations. In m116 they are all displayed in the top left corner.
Also fails with AIX 116 and NT/95 116.
/******** FramePos.java ********/
import java.awt.*;
public class FramePos
{
public static void main(String argv[])
{
for (int i = 1; i <= 10; i++) {
Frame fr = new Frame("FramePos " + i);
fr.setSize(300,200);
fr.setVisible(true);
if (i >= 6)
try {Thread.sleep(300);} catch (InterruptedException e) {}
fr.setSize(310,210);
try {Thread.sleep(700);} catch (InterruptedException e) {}
}
}
}
======================================================================
|
|
Work Around
|
N/A
|
|
Evaluation
|
I think this is a duplicate of 4102292
xxxxx@xxxxx 26 Jun 2001
======================================================================
|
|
Comments
|
Submitted On 06-JUL-1998
maryp
If you run the fvwm window manager, the problem
is worse. The frame origin is outside the area of
the screen. The top of the window (has icon
control & frame menu) is outside the area of the
screen, so you can't move the frame, iconize it,
or close the frame from the frame's pull-down
menu.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |