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
Posts: 384
Registered: ‎08-12-2008
My Device: 8700

Draw text with underline

Hi All,

 

How to drawText with line.

 

I use Graphics.drawText(string,x,y DrawStyle.BASELINE);

 

however, there is no line in there.

 

I use this method on my ListField Callback.

 

Thanks.

 

 

Highlighted
Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Draw text with underline

You need to use Font.UNDERLINE style.

 

Assuming you have a base font object already, call font.derive(Font.UNDERLINE)