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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
jonberry
Posts: 484
Registered: ‎07-17-2008
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 

Please use plain text.
Developer
mreed
Posts: 1,021
Registered: ‎07-16-2008

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().
Please use plain text.