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
Highlighted
Contributor
Posts: 15
Registered: ‎11-14-2012
My Device: 9220
My Carrier: cellone

Change focus color of Choice in ObjectChoiceField

Hi,

I want to change the default blue color to orange in my application. Please suggest me the code to change the focus color of object choice field

 

Thanks in advance

Super Contributor
Posts: 278
Registered: ‎11-04-2010
My Device: 4.5 and above
My Carrier: none

Re: Change focus color of Choice in ObjectChoiceField

@override paint method.

public void paint(Graphics g){
if(isFocus()){
g.setColor(Color.ORANGE);
}
}
Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Change focus color of Choice in ObjectChoiceField