BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-17-2007, 01:39 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: CLDC
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb Painting Background Problem...

Please Login to Remove!

Hi, All

When i call paintBackgroundColor() method inside paint() method it will prints only half of the screen...What should be the issue with it?

Any help?
Thanks in Advance
Offline  
Old 08-18-2007, 10:37 PM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2007
Location: Bangladesh
Model: 8800
PIN: N/A
Carrier: EDGE
Posts: 93
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi dangihitesh,

Use the following code To set the background color of a screen.

Code:
Code:
public void paint(Graphics graphics) {        
    // Sets the BackgroundColor
    graphics.setBackgroundColor(Color.RED);
    
    // Clears the entire graphic area to the current background
    graphics.clear();    
}
The Clear() method from the Graphics class must immediately follow the setBackgroundColor(int Color) method, as the entire graphic area must be cleared to allow other objects to be drawn.

Cheers,
ARIF
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

5Pcs 6mm Black Shaft Hole Dia bakelite Potentiometer Pot Pointer Knobs Caps
$5.03
5Pcs 6mm Black Shaft Hole Dia bakelite Potentiometer Pot Pointer Knobs Caps <Z picture5Pcs Ribbed Grip 4mm Split Shaft Potentiometer Control Knobs Black kG
$4.32
5Pcs Ribbed Grip 4mm Split Shaft Potentiometer Control Knobs Black kG picture10 x Black Slide Potentiometer Mixer Fader Knob 19mmLx12mmW for 4mm Shaft
$5.83
10 x Black Slide Potentiometer Mixer Fader Knob 19mmLx12mmW for 4mm Shaft <Z picturePOTENTIOMETER JOYSTICK: FARNELL APEM - 4000 SERIES Part 1428459
$49.96
POTENTIOMETER JOYSTICK: FARNELL APEM - 4000 SERIES Part 1428459 pictureNew Bourns 10K Knobpot Pot 3640S-1-103 Potentiometer
$19.99
New Bourns 10K Knobpot Pot 3640S-1-103 Potentiometer picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.