Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
09-26-2011 03:10 AM
I am currently porting an existing Jme application to BB using the native api(JDE 4.6).I currently have a list which is rendered as shown in the attached image . Could someone kindly guide me as to how i achieve the same using the List field or the possible way of acheiving the same. Thanks in advance.
Solved! Go to Solution.
09-26-2011 03:25 AM
09-27-2011 06:08 AM
In my drawListRow method in order to achieve two lines i do the following:
StringBuffer stringBuffer=new StringBuffer();
g.drawText(stringBuffer.toString(),width, y, 0, w);
but i never see a new line being added.The first line and second line appear together. Am i doing something wrong here?
09-27-2011 06:14 AM
09-27-2011 07:03 AM - edited 09-27-2011 07:12 AM
Thank you. I achieved it using the following :
g.drawText(firstLine,width, y, 0, w);
g.drawText(secondLine, y+g.getFont().getHeight(), 0, w);
And also to point out the drawText method does not handle new-lines, which i figured out later.