In Java application you can use the import statement to add you would like to use a different Java class. For BlackBerry using Java 2 Mobile Edition, J2ME all you can get all the classes. In addition, a large number of classes is BlackBerry (BlackBerry) specific to the use of these classes we need to add the user interface and driver interfaces.So the first part of your code like this:
Code:
import com.rim.samples.device.resource .*;
import net.rim.device.api.ui .*;
import net.rim.device.api.ui.component .*;
import net.rim.device.api.ui.container .*;
import net.rim.device.api.system .*;
import net.rim.device.api.collection.util .*;
Bookmarks