New Features of NetBeans Mobility Pack 6.0
By lukas on Nov 25, 2007
In previous versions the Mobility Pack was distributed as add-on installer that added the Mobility Pack functionality to existing NetBeans installation. In the new version, it has changed. You can download Mobility Pack installer that will install the whole IDE that you need for the Java ME development. The distribution that include the Mobility functionality are the Mobility NetBeans Pack and the All NetBeans Pack.
It is also easier to add the Mobility functionality into your existing NetBeans 6.0 installation. Let me explain it on an example. You installed the smallest NetBeans IDE distribution for Java SE. After while you decided that you want to develop also a MIDP application. You don't have to download another installer again. You just open the "Tools > Plugins" then select the functionality that you want (in this case whole Mobility category). And the IDE will be enhanced with the desired plugin.
Merged CLDC/MIDP + CDC functionality
There were two Mobility Packs in version 5.5 and 5.5.1. One for CLDC/MIDP development and the second one for CDC development. The functionality of both packs was merged in the 6.0 release. There are two different types of project in New Project wizard - MIDP Project and CDC Project.
Even if you create MIDP project you can change it to CDC project later in project properties. The only difference between those two projects is the CDC or CLDC platform.
LEGO build/project system
You can build whatever you want with the LEGO bricks. You can combine the bricks together to build up something. Particular parts of Mobility were broken into small separated pieces that build up the UI and the functionality of the project system. Depending on what platform you are using different options are available in project properties.
This LEGO system enables to developers that would like to enhance the mobility pack easily plug-in their functionality. They can add new platform type, new deployment type, new configurations provider, etc.
You can see how the Application Descriptor panels changes for different platforms at following pictures.
Visual Mobile Designer for MIDP version 2
The Visual Designer for MIDP is part of the Mobility Pack from 4.1 release. The UI and the functionality was changed significantly in this release. Actually, the whole API and implementation has been changed. The main reason for this step was to improve the API for external developers that would like to create their own custom components for the Visual Designer.
The new version of the Visual Designer has a slightly different look then the previous one.
Flow Designer view
Screen Designer view
There are new components in palette. Some of them are new screens that you can use in your visual design - File Browser, PIM Browser, Login Screen, SMS Composer. The others can be used for the visual design of the logic of the application - Switch and Switch Case, If, etc.
New components of Visual Designer
There is new tool in the Visual Designer. It is Analyzer. It checks your code for unused resources that can be removed from the project to decrease its size. It also checks your code fr compliance with MIDP 1.0.
The old visual designs from previous version cannot be opened in this version. There is a Converter that converts the old design to new format. This steps isn't necessary. It is mandatory only when you want to modify the old visual design in the NetBeans Mobility 6.0.
When you are creating a game you need to create maps, characters, creatures etc. The Game Builder helps you to create Sprites, TiledLayers ans Scenes for MIDP 2.0 Game API. It will help you with the UI but not with the game logic. There is nice description of the functionality from the author. Sample project is part of the Mobility distribution - New Project > Samples > Mobility > MIDP > Simple Game Created with Game Builder.
Create new Sprite
Create new TiledLayer
Create whole scene
There is SVG support with SVG components for a while in the Visual Designer. It was enhanced by simple SVG Composer that enables you to edit existing SVG images or to create your own SVG image from scratch. The set of feature set is really limited. Developer should be able to slightly change existing image. He can rotate, scale, move, translate svg elements of the image. There is a palette with some basic shapes that she can add to the image as well. User can directly edit svg image source when she needs it.
When you need to create a png or jpeg image from svg image or from svg animation then right click on your image and choose one of the Export menu items. The export dialog can create png/jpeg images for all configurations in your project. The images will have the right size as it is defined in your emulator platform.
SVG Composer view with palette
Databinding library for Java ME
The Databinding library for Java MEwas introduced at TS-5626 at JavaOne 2006. It is part of the NetBeans Mobility IDE. When you are generating stubs for Java Me Web Service Client or for Mobile Client to Web Application then the IDE can generate the databinding structures for you. The library itself provides only basic set of BindingProvider however the API is easy. You can join the project and add you BindingProviders.
Configuration Management When you needed to create more configurations you had to create them one by one in previous versions. You can create several project configurations at once now. You can duplicate existing configuration by providing a prefix/postfix.
Add more configurations to project
The configurations can be managed directly from Projects view. You can create, delete, set active configuration, add/remove a resource to configuration. When a configuration node is selected in Projects view then all abilities of the configuration appears in Navigator window where you can manage them.
Configurations in project view
I already wrote a article about the new configuration management in 6.0. You can read it to find out more details.
New Deployment Types
The existing list of deployment types was enhanced. The available deployment methods are:
- Secure Copy (SCP/SFTP)
- Device Anywhere Remote Device deployment - deploy to remote devices provided by deviceanywhere.com
- Nokia Terminal Connected via PC Suite - this functionality is available for users of Mobility Pack 5.5/5.5.1 on Update Center.
- Windows Mobile Deployment (locally attached device)
- File Copy
- Ricoh Deployment - for Ricoh devices. You can deploy either to SD card or to a server.
- SonyEricsson Phone (locally attached device)
The NetBeans Mobility 6.0 provides installer only for Windows and Linux. The zip distribution is also available for those that want to use it on "unsupported" platforms - e.g. Mac, Solaris. Although you can add whatever platform you want to the Mobility Pack only following are supported and tested:
- Sun Java Wireless Toolkit for CLDC - the newest WTK 2.5.2 emulator platform is bundled with the Mobility Pack distribution. The WTK is also available at Update Center. You can easily download it with Tools > Plugins manager.
- Sun Java Toolkit 1.0 for CDC
- Sony Ericsson CDC Platform 1
- Nokia Series 80 Platform
- CrE-ME from NSICOM
"LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this site"