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: 19
Registered: ‎12-27-2009
My Device: Not Specified

Background on Fields

can someone help me?


how to set background Bitmap on the MainScreen, on the screen I have some fields, and if I override paint() method and draw bitmap in it its override all screen and fields


can halp?

Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: Background on Fields

[ Edited ]

Try to override paintBackground(Graphics g), draw your bitmap inside and leave everything else to paint normally.

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
Posts: 638
Registered: ‎07-02-2009
My Device: Not Specified

Re: Background on Fields

you can take a manager, then override its paint(Graphics g) and add all your fields to this manager, and in turn add this manager to your screen.

Thanks and Regards,
Posts: 49
Registered: ‎08-25-2009
My Device: Not Specified

Re: Background on Fields

[ Edited ]

as per Jerome Carty override painBackground method of the Screen. Its better if you want to display image in the whole screen else override paintBackground of the manager you are using.


protected void paintBackground(Graphics graphics) 
    graphics.drawBitmap(x, y, bitmapwidth, bitmapheight, bitmap, left, top);