Click here to Skip to main content
12,998,483 members (128,555 online)
Rate this:
Please Sign up or sign in to vote.
Hi Every one am newbie to BlackBerry, I was an Android Developer.

Know I would like to create BlackBerry Application using java.

- I want to create Grid Field with image and text I don't know how o create I seen some basic level Grid Field in BlackBerry docs, but its not perfect one that I need please tell me any one,

* How to create Grid Field with Image & text?
* How to create custom grid Field and event handling for each item?

Thanks a ton in advance,


Posted 17-Jan-13 18:05pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

GridFieldManager grid = new GridFieldManager(4 ,4 , 0);
Bitmap msg = Bitmap.getBitmapResource("msg.png");
BitmapField message = new BitmapField(msg, Field.FOCUSABLE)
    protected boolean navigationClick(int status,int time)
       Dialog.alert("Message icon selected");
       return true;
Bitmap logs = Bitmap.getBitmapResource("calllogs.png");
BitmapField call_logs = new BitmapField(logs, Field.FOCUSABLE)
    protected boolean navigationClick(int status,int time)
      label.setText("Call logs");
      Dialog.alert("Call Logs icon selected");
      return true;
grid.add(message, 0);
grid.add(call_logs, 1);
grid.add(contacts, 2);
grid.add(internet, 3);
grid.add(calendar, 4);

if you are using images you can use this else you can use labelfield
Try using this and You can also set focus on it..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 19 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100