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
Contributor
Posts: 30
Registered: ‎04-13-2010
My Device: N/A
My Carrier: T-Mobile

Setting background color

I use Eclipse 3.5.0 with blackberry JDE plug in

 

but everytime i try the several methods availabel for painting the background color i still get a white screen.... someone please help

 

 

here is my current paint method:

 

  public void paint(Graphics gs) {

    	gs.setBackgroundColor(0x00FF0000); // red background

    	gs.clear();

    	super.paint(gs);

    	}

 

 

Thanks,
Saula
Your neighborhood programmer.
http://homeworkjava.com
Developer
Posts: 114
Registered: ‎04-28-2010
My Device: Storm 9530
My Carrier: Telus

Re: Setting background color

Heyy,

 

         Im guessing you are trying to create a background for the MainScreen/FullScreen/Screen class. Look at this tutorial.. Blackberry Background..

 

Mitchell Romanuik.

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Setting background color

[ Edited ]

deleted...

 

 

 

Developer
Posts: 114
Registered: ‎04-28-2010
My Device: Storm 9530
My Carrier: Telus

Re: Setting background color

what?