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
Super Contributor
Posts: 308
Registered: ‎05-31-2011
My Device: Blackberry-SDK-9800
My Carrier: SimPakage 6.0.0.337_9800 asia.exe

befault color is blue for button

hello ,

       i am developing GUI application.. where horizontal field manager has 2 buttons....

but one of button color is blue,,,, y is it so... i just created a button.. but its color is blue.. how to change the color of button

Trusted Contributor
Posts: 146
Registered: ‎03-22-2010
My Device: Not Specified

Re: befault color is blue for button

you can do this by  overriding its paint method

Super Contributor
Posts: 308
Registered: ‎05-31-2011
My Device: Blackberry-SDK-9800
My Carrier: SimPakage 6.0.0.337_9800 asia.exe

Re: befault color is blue for button

ok bhattre,  but y the color of button is blue by default ...... anyways, i will override it... 

 

Trusted Contributor
Posts: 146
Registered: ‎03-22-2010
My Device: Not Specified

Re: befault color is blue for button

That is default color of button of OS

its blue in 4.5 and i think black in 4.7 and above

Contributor
Posts: 48
Registered: ‎05-26-2011
My Device: Bold 9700
My Carrier: Telkomsel

Re: befault color is blue for button

Try to create public void applyTheme() {} to remove the blue. You also could create your custom button by inherit Field class.

Super Contributor
Posts: 308
Registered: ‎05-31-2011
My Device: Blackberry-SDK-9800
My Carrier: SimPakage 6.0.0.337_9800 asia.exe

Re: befault color is blue for button

thanks for reply ,

    i will check it and get back to u .