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

New Developer
Posts: 6
Registered: ‎08-13-2010
My Device: Not Specified

How to change the default blue focus color of checkbox ?



I have this custom field extend the CheckboxField, with the drawFocus()  method overriden as follows:


protected void drawFocus(Graphics graphics, boolean on) {

What I want is no focus on the field as whole ( I mean box and text ) but only on the box part. By overriding this method that is done. Now when the focus comes on this field then the box is highlighted with blue color.Now I need to change that to some other color.


Is there any way to do this?


Thanks & Regards,

Aarti Jain

Posts: 147
Registered: ‎08-27-2010
My Device: 9800
My Carrier: airtel

Re: How to change the default blue focus color of checkbox ?

[ Edited ]

using Characters.BALLOT_BOX_WITH_CHECK and Characters.BALLOT_BOX you can create your own customcheckboxfield without extending checkboxfield.


In customcheckboxfield  you can do all type of customization like border color.