How to make this layout in blackberry

This screenshot have three editfield I want to do this type of blackberry screen. In the editfield, he should have # in starting and * at the end and it should not be removed on back press.

The best way to do it is to have the entire field as a HorizontalFieldManager.  This will contain 3 fields, a LabelField to display the ' # ', an EditField and an another LabelField to display the *.

For the two LabelFields that you will replace object to set the color you want, and then call the super.paint ().

The trick is the EditField, which, by default, will have plenty of space, it is given.  You should limit its width to make room for the * at the end.  The best way to do this is to replace the sublayout() in the HFM and actually ask the fields yourself.  Here are two KB articles that will help you to do this:

http://supportforums.BlackBerry.com/T5/Java-development/create-a-custom-layout-manager-for-a-screen/...

http://supportforums.BlackBerry.com/T5/Java-development/how-to-extend-Manager/Ta-p/446749

There are other ways to do it, but I think this approach is more flexible.

Good luck.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Re: Qosmio F50 - 12J - FN key doesn't work only with new value-added package

    HelloI have Toshiba Qosmio F50 - 12J and have problems with value-added Package v 1.2.28. I can't get flash cards to work. When I press FN key on nothing happens. BTW, I installed VAP on freshly installed Windows 7 64-bit. With the VAP previuos versi

  • Pavilion dv6 - 6c04ea battery alert on Start up

    Pavilion dv6 - 6c04ea Windows 7 Home Premium 64-bit All of a sudden, I started getting a message on Start Up of the HP battery alert. The message tells me that the battery level is extremely low and that I might have to replace it. There is a web add

  • CM100 modem does not work with BELKIN router

    Hello I just bought a CM100 used on eBay, so I can get rid of my Charter rental, but it doesn't seem to work with my BELKIN router. The model number is BELKIN F5D7230-4. I tried everything, but the 'CONNECT' led will continue to Flash. I thought it w

  • System cannot access the windows installer (error 641)

    original title: System cannot access the windows installer Have free AVG and cannot uninstall it or install the Windows updates. message is "cannot access the Windows install. Get error 641 on windows. Vista home premium 32-bit operating system. Rece

  • Which program to choose "Ask administrator for permission" on the Parental control

    I am the administrator and I have parental controls installed on user accounts for my children.  When they fall on a blocked Web site, one of the options is "Ask an administrator for permission."  When they click on this link, a dialogue, a box pops