-
Bug
-
Resolution: Fixed
-
P4
-
solaris_2.6, 1.1.4, 1.1.5, 1.1.6, 1.2.0
-
None
-
1.1.6
-
generic, sparc
-
solaris_2.5.1, solaris_2.6
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2018585 | 1.2.0 | Mike Bronson | P4 | Resolved | Fixed | 1.2beta3 |
when the resize changes the upper left corner of the frame.
// Test3.java:
import java.awt.*;
import java.awt.event.*;
public class Test3 extends Frame {
Window w;
public Test3() {
final Frame f = this;
Panel p = new Panel();
f.add(p);
p.setLayout(new BorderLayout());
Button b = new Button("Press");
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent be){
Component c = (Component)be.getSource();
Point cp = c.getLocationOnScreen();
System.out.println("Screen Position = " + cp.x + " " + cp.y);
System.out.println("Window bounds = " + f.getBounds());
}
});
p.add("Center", b);
}
public static void main(String args[]) {
Test3 g = new Test3();
g.pack();
g.setVisible(true);
}
}
- backported by
-
JDK-2018585 Frame.getBounds() returns the wrong position after a resize.
-
- Resolved
-
- duplicates
-
JDK-4108743 Swing Menus stop working with Solaris CDE if window is stretched
-
- Closed
-
-
JDK-4137555 If JFrame is resized then JMenu's dropdown changes its position
-
- Closed
-
-
JDK-4092034 Window.getLocation() returns incorrect values after resize
-
- Closed
-
-
JDK-4105470 resize of frame , no change in getBounds()
-
- Closed
-
-
JDK-4143661 JMenu and Window Resize Problem
-
- Closed
-
- relates to
-
JDK-5053910 manual test GetBoundsResizeTest have no visible output
-
- Closed
-