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: 108
Registered: ‎08-05-2008
My Device: Not Specified

How to set the background on a LabelField

I have 2 questions:

 

1. How does one set the background color on a LabelField to a solid color?

2. How does one set the background color on a LabelField to a gradient? 

 

Thanks. 

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

Re: How to set the background on a LabelField

 

Basically, you need to "invent" it by overriding LabelField, and painting the background.

 

Search for "labelfield background" and you will find many threads discussing the topic.