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
New Developer
alanbirtles
Posts: 5
Registered: ‎08-18-2008
My Device: Not Specified

CustomItem Colors

[ Edited ]
I am trying to develop a J2ME custom item. I am using Display.getColor to find the colors that i should use for painting, however on the blackberry all of the colors come out black. Does anyone have any suggestions? I am testing on a 8320
Message Edited by alanbirtles on 08-18-2008 08:45 AM
Please use plain text.
Administrator
MSohm
Posts: 14,379
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: CustomItem Colors

What are the values being returned from getColor?  Is it specifying black only?  Have you tried using your own RGB value?  What version of BlackBerry software are you testing on?  You can see this under Options, About on the BlackBerry.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
alanbirtles
Posts: 5
Registered: ‎08-18-2008
My Device: Not Specified

Re: CustomItem Colors

all calls to getColor are returning black (0), i have tried:

COLOR_HIGHLIGHTED_FOREGROUND,

COLOR_BORDER,

COLOR_FOREGROUND,

COLOR_BACKGROUND,

COLOR_HIGHLIGHTED_BACKGROUND.

I have worked round the problem by hardcoding default values to use when all colors are the same but it would be better to solver it properly.

I am using software versio 4.2.2.194

Please use plain text.
Administrator
MSohm
Posts: 14,379
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: CustomItem Colors

Thank you for the information.  I have been able to reproduce this issue and forwarded it to our development team.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.