BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-23-2009, 05:27 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2009
Model: 9530
PIN: N/A
Carrier: o2
Posts: 35
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Colour.RED not found

Please Login to Remove!

0x00008800

what is this called when referencing a color? I want to search so i can visully see a color and then gets it code like 0x00008800 but i don't even know what it is. I want g.setColor(red or #ff0000 but when i do Color.RED it can't find class Color, g is rim graphics. It only compiles if i put setColor(0x00008800)

forgive me if this is basic,
Offline  
Old 08-23-2009, 06:00 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2009
Model: 9530
PIN: N/A
Carrier: o2
Posts: 35
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

got it, red is 0xff0000!
Offline  
Old 08-26-2009, 08:03 PM   #3 (permalink)
Knows Where the Search Button Is
 
pfowler's Avatar
 
Join Date: May 2008
Location: Palo Alto, CA
Model: 8310
PIN: N/A
Carrier: ATT
Posts: 39
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default

You may want to double check that the color api is properly imported:
Code:
#import net.rim.device.api.ui.Color
also, always double check your spelling: although RIM's in Canada, their api still defines it as "Color" not "Colour" ;)

4.2 api link: RIM Device Java Library: Class Color
Offline  
Old 08-27-2009, 02:30 AM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2009
Model: 9530
PIN: N/A
Carrier: o2
Posts: 35
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for that,

I've been using this ... 0xff0000 for red, but it's good to know what the problem was, I must have been trying to use j2me Color class looking at your post.

Regards

Brendan
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

MS104-SH4 W/512MB & ONTEC 2001 KFPB-383B PC104MA
$550.0
MS104-SH4 W/512MB & ONTEC 2001 KFPB-383B PC104MA pictureAUDIOKIT-EVB - 2 x 10-watt Dual BTL Class-D Audio Amplifier by ST Micro
$9.99
AUDIOKIT-EVB - 2 x 10-watt Dual BTL Class-D Audio Amplifier by ST Micro picture5pcs Plastic White Box Case DIY 21.5x50x85mm For Electronic Project Amplifier
$2.56
5pcs Plastic White Box Case DIY 21.5x50x85mm For Electronic Project Amplifier  pictureadvanced motion controls brushless motor servo driver amplifier B53509
$50.0
advanced motion controls brushless motor servo driver amplifier B53509 picture1PCS BLF881 VHF UHF power amplifier MOSFET
$50.0
1PCS BLF881  VHF UHF power amplifier MOSFET picture






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