JBuider Development J2ME Program Small Tip: Optimize IMPORT
More articles please visit: http://blog.9cbs.net/mailbomb
In J2ME development, JBuilder is a strong tool. The smaller the memory used by the J2ME program, the better below, let's introduce the use of JBuilder to optimize the Import statement.
When writing a program, for simple, we often use import to introduce the entire package, for example:
Import javax.microedition.lcdui. *;
But when we are in use, only one or several classes in this package are used. Each of the introduction of each reference to the package is allocated (although few), if there is any way to convert the introduction of the entire package to the introduction of the package in the package?
JBuilder provides this feature that converts the introduction of the entire package into references to classes used in the program. The method of operation is as follows:
The Project Properties menu under the "Project" menu, then find "Threshold" in "Import" in the "Formatting" property page, select the "Always Import Class" option in the interface, press "OK" to close the setting.
Then, you can select the file you need to format in the list of project files. You can optimize import in the "Format file name" in the Right-click menu.