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
Contributor
robinbabu
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

Please use plain text.
Super Contributor
pp
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);
}
}
Please use plain text.
Developer
maadani
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Change focus color of Choice in ObjectChoiceField

Please use plain text.