Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
tejaswini
Posts: 211
Registered: ‎04-29-2009
My Device: Not Specified

Re: Customized checkboxes

Hi again,

 

I was able to populate a list with headers and data.

I am using string buffers for this.

 

The only problem I am facing now is instead of actual image, i am getting  hashcode for the image...javax.microedition.lcdui.Image@85236B15

 

I am appending an image to stringbuffer:

 

sb.append(img);

 

 

Please help. 

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Customized checkboxes

putup few more lines of your code.

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
mantaker
Posts: 1,477
Registered: ‎12-30-2008
My Device: Torch 9810

Re: Customized checkboxes

Seems terrible.. Do you think, appending the image in a string buffer will show up the image on screen? 

--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Please use plain text.
Developer
tejaswini
Posts: 211
Registered: ‎04-29-2009
My Device: Not Specified

Re: Customized checkboxes

 

 

try {

img = Image.createImage("chkBox.png");

} catch (IOException e1) {

// TODO Auto-generated catch block

e1.printStackTrace();

}

//in loop I do: 

sb.append(img);

 

 

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Customized checkboxes

Please go thru the API docs of StringBuffer and their methods. You ahve to draw teh image on screen not to StringBuffer.

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.