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
ravi1989
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

AutoCompleteField background problem

I have a problem with changing the background of AutoCompleteField. No matter what I try, the background is gray all the time (isn't it strange it is gray by default in the first place...).

Anyone knows how to make the background white 

Thanks in advance!

Developer
peter_strange
Posts: 19,612
Registered: ‎07-14-2008
My Device: Not Specified

Re: AutoCompleteField background problem

I just tried:

autoCompleteField.setBackground(BackgroundFactory.createSolidBackground(Color.PINK));

and the space around the edges of the input area were PINK which is what I expected. 

 

Perhaps you can give us a standalone sample of your code (i.e. a small sample that we can run), and screen shots to demonstrate what you see and explain what you expect to see. 

 

Or alternatively you are expecting a different result.