BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-20-2011, 01:28 AM   #1 (permalink)
New Member
 
Join Date: Feb 2011
Model: 8350i
PIN: N/A
Carrier: nextel
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default why does it say this...

Please Login to Remove!

public void paint(Graphics graphics) {
// Sets the BackgroundColor
graphics.setBackgroundColor(Color.ALICEBLUE);

// Clears the entire graphic area to the current background
graphics.clear();
}


"IT SAYS WARNING!: METHOD.....NOT INVOKED"

can someone tell me what that means. thanks
Offline  
Old 02-20-2011, 09:00 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: why does it say this...

It means that the method was declared in a class but never called in that class.

It's a warning - ignore it. paint() is called by the GUI framework.
Offline  
Old 02-20-2011, 11:09 AM   #3 (permalink)
New Member
 
Join Date: Feb 2011
Model: 8350i
PIN: N/A
Carrier: nextel
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: why does it say this...

Ok. But my background color isn't changing, is there something else I need to be doing?
Posted via BlackBerryForums.com Mobile
Offline  
Old 02-20-2011, 06:38 PM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: why does it say this...

Depending of the object you are extending you may also need to override the definition of paintBackground(Graphics graphics)
__________________
My other Blackberry is a PlayBook.
Offline  
Old 02-20-2011, 06:45 PM   #5 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: why does it say this...

I think I gave you a sample of this a couple of days ago:

background (easy question)
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

HSS 12PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$164.99
HSS 12PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP pictureDEC Alpha AXP 21-39184-01 21064 1993 Vintage Rare Gold Recovery CPU IC chip
$24.99
DEC Alpha AXP 21-39184-01 21064 1993 Vintage Rare Gold Recovery CPU IC chip pictureDEC4015P Raytheon 16 DIP IC DEC4015 - Vintage 1974 NOS Qty 1
$9.99
DEC4015P Raytheon 16 DIP IC DEC4015 - Vintage 1974 NOS Qty 1 pictureHSS 10PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$152.99
HSS 10PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP pictureHSS 15PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$196.99
HSS 15PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP picture






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