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
Posts: 55
Registered: ‎03-26-2009
My Device: Not Specified

Re: Custom Button with a background image had white area around it

As mreed specified, it worked with overriding drawFocus and setting the background to black there.

 

I wanted the background to be black so added this to the custom button class

 

 

protected void drawFocus(Graphics g, boolean on){ g.setBackgroundColor(Color.BLACK);}

 

 

 

New Developer
Posts: 13
Registered: ‎07-17-2008
My Device: Not Specified

Re: Custom Button with a background image had white area around it

Hi,

 

I am using a custom button on a screen which has a colored background but the corners are white when the button is not in focus and infact the native radio button also shows white corners when focussed.

 

Please help...

 

Saumitra