BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-11-2008, 11:01 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Location: Buenos aires, Argentina
Model: 8520
PIN: N/A
Carrier: Claro
Posts: 75
Post Thanks: 0
Thanked 4 Times in 4 Posts
Default StringItem

Please Login to Remove!

Hi, i have a StringItem that i need to set the font (Bold) with setFont, but the parameter is a Font object (javax.microedition.lcdui.Font) and i dont know how can i get a bold Font object(javax.microedition.lcdui.Font) to use it as parameter.

thanks
__________________
Martin

Blackberry Instructor
Offline  
Old 11-17-2008, 10:49 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Model: 8320
PIN: N/A
Carrier: T-Mobile
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you able to do something like this?

javax.microedition.lcdui.Font default = javax.microedition.lcdui.Font.getDefaultFont();
javax.microedition.lcdui.Font.getFont( default.getFace(), javax.microedition.lcdui.Font.STYLE_BOLD, default.getSize() );
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.