View Single Post
Old 07-21-2008, 04:41 PM   #1
flameheels
New Member
 
Join Date: Jul 2008
Model: 8800
PIN: N/A
Carrier: MTS
Posts: 9
Default 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)
Offline   Reply With Quote