This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When removing the last ItemCommand from an Item in the Visual Designer, the ItemCommandListener implementation and commandAction() method are removed from the MIDlet declaration, but the .setItemCommandListener(this) assignment is NOT removed, resulting in an error... public TextField getAmountTextField() { if (amountTextField == null) { // write pre-init user code here amountTextField = new TextField("Amount:", "", 32, TextField.DECIMAL); amountTextField.setItemCommandListener(this); // <<<<-- ERROR! amountTextField.setLayout(Item.LAYOUT_LEFT | Item.LAYOUT_NEWLINE_BEFORE | Item.LAYOUT_EXPAND); // write post-init user code here } return amountTextField; }
fixed in main, changeset: http://hg.netbeans.org/main/rev/76e07e415312