Im having trouble adding a menuitem to the mainscreen menu
Please Login to Remove!
Im having difficulty adding a Menuitem to the main screen. Adding the other fields has been no problem. here is the code. Imports are included.
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.MenuItem;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.system.*;
....
MenuItem men = new MenuItem("new item",40,40) {
public void run() {
// title.setText("text here");
}
};
add(men);
the error I get is:
C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\bin\HelloWorldtest.java:137: cannot find symbol
symbol : method add(net.rim.device.api.ui.MenuItem)
|