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: 484
Registered: ‎07-17-2008
My Device: Not Specified
Accepted Solution

Changing DrawStyle

Is it possible to dynamically change the drawstyle after a field has been created?

 

I can't find a method to do this...

 

Field.setStyle() ??? 

 

Thanks,

 

Jon 

Developer
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Changing DrawStyle

I don't know of any way to alter the style after it's been set, but you can override paint() and call Graphics.setDrawingStyle() to turn on/off DrawStyles before calling super.paint().