From: Nick Roberts <###@###.###>
This does not look like form output to me.
JDK version 1.0
Win32
The setLabel method of java.awt.MenuItem does not change the displayed
text, the label reported by getLabel does change.
In the Beta-1 AWT source which we licensed the setLabel method in the
MenuItem Win32 peer is not implemented. I presume this remains the case
in JDK-1.0 as the problem remains.
Nick Roberts
SilverPlatter Information
[aim 6/13/96]
I added a test case:
import java.awt.*;
public class MenuLabel extends Frame{
MenuItem mitem;
public MenuLabel() {
super("Menu Label Test");
MenuBar mb = new MenuBar();
setMenuBar(mb);
Menu m = new Menu("File");
mb.add(m);
mitem = new MenuItem("Open");
m.add(mitem);
m.add("Change Label..");
pack();
show();
}
public boolean action(Event evt, Object arg) {
if (arg.equals("Change Label..")) {
mitem.setLabel("Save");
return true;
}
return false;
}
public static void main(String[] args) {
new MenuLabel();
}
}