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: 185
Registered: ‎09-02-2010
My Device: Not Specified
Accepted Solution

Background

Hi,

 

       In my application I have one main screen which contains one Vertical Field Manager and Horizontal Field Manager...I added these two managers to my screen...now how can i change the background color of that screen ...i customized screen like this but it wont work...

MainScreen ms=new MainScreen()
{
protected void paintBackground(Graphics graphics) 
{
   graphics.setBackgroundColor(Color.LIGHTBLUE);	
	super.paintBackground(graphics);
}	
};

 

 

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Background

if you search the forum...

 

but whatever:

add a verticalfieldmanager, use the background there (in 4.6+ use BackgroundFactory).

add fields to this vfm instead of the mainscreen.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 185
Registered: ‎09-02-2010
My Device: Not Specified

Re: Background

Developer
Posts: 342
Registered: ‎09-28-2009
My Device: Not Specified

Re: Background