-
Bug
-
Resolution: Fixed
-
P1
-
1.1, 1.1.1
-
None
-
1.1.5
-
generic, sparc
-
solaris_2.5, solaris_2.5.1
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2013838 | 1.2.0 | Paul Young | P1 | Resolved | Fixed | 1.2beta2 |
This is with the up-to-the-minute JDK 1.1-AWT tree of 1/27/97.
If you remove and reinsert the MenuBar for a frame, the frame moves upwards.
I first saw this with the BeanBix and it was pretty confused until I
realized exactly what was happening. It only happens on Solaris.
I'm labelling this P1/S3, as it probably ought to get fixed for FCS!!!
Here is a simple test case that reproduces the problem. Start the following
program and then just click on the frame to see the effect.
KGH 1/27/97
import java.awt.*;
public class Garcon extends Frame {
Garcon() {
resize(200,200);
setMenuBar();
show();
}
void setMenuBar() {
MenuBar bar = new MenuBar();
bar.add(new Menu("foo"));
setMenuBar(bar);
}
public boolean handleEvent(Event evt) {
if (evt.id == Event.MOUSE_UP) {
setMenuBar();
}
return false;
}
public static void main(String argv[]) {
new Garcon();
}
}
nasser.nouri@Corp 1997-05-02
- backported by
-
JDK-2013838 replacing menubar causes frame to migrate upwards
-
- Resolved
-
- duplicates
-
JDK-4037896 window Jumps around
-
- Closed
-
-
JDK-4038898 Replacing menuBar associated with a Frame causes the frame position to change
-
- Closed
-
-
JDK-4088496 Appletviewer jumps about 50 pixels.
-
- Closed
-
- relates to
-
JDK-4159883 JDK117[Solaris]: Adding/Removing a menu causes frame to unexpected small size
-
- Closed
-