BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-22-2009, 08:22 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2009
Model: 8100
PIN: N/A
Carrier: vodafone
Posts: 33
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Change color of specific text only in text box for blackberry

Please Login to Remove!

Hi there,

How to Change color of specific text only in text box for blackberry?

Please help.

Thanks in advance.
Offline  
Old 05-22-2009, 11:07 AM   #2 (permalink)
BlackBerry B Boy
 
jeremyckitching's Avatar
 
Join Date: Apr 2007
Model: 9700
OS: 5.0.0.415
PIN: 215BE1F8
Carrier: T-Mobile U.S.A.
Posts: 4,243
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wirelessly posted (BlackBerry Curve 8900)

I am not sure this is possible. I haven't seen options for changing the text color.
Offline  
Old 05-22-2009, 11:09 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can override the paint method of the text field, with something like:

Code:
LabelField redLabelField = new LabelField("MyText) {
    public void paint(Graphics g) {
        g.setColor(Color.RED);  
        super.paint(g);
    }
}
Offline  
Old 05-22-2009, 11:23 AM   #4 (permalink)
BlackBerry B Boy
 
jeremyckitching's Avatar
 
Join Date: Apr 2007
Model: 9700
OS: 5.0.0.415
PIN: 215BE1F8
Carrier: T-Mobile U.S.A.
Posts: 4,243
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wirelessly posted (BlackBerry Curve 8900)

Whoops! Didn't realize this was in the developers forum.
Offline  
Old 05-25-2009, 01:54 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2009
Model: 8100
PIN: N/A
Carrier: vodafone
Posts: 33
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Also How can I make the Textfield editable after changing colors...?
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

Holden VF Commodore SS-V Redline Wheels Sport Metal Watch
$16.99
Holden VF Commodore SS-V Redline Wheels Sport Metal Watch pictureCommodore 64 - Classic Retro 8 Bit Computer
$79.99
Commodore 64 - Classic Retro 8 Bit Computer picture6X Fuel Injector For Ford Falcon BA BF XR6 Holden Commodore V6 VN VY 0280155968
$75.42
6X Fuel Injector For Ford Falcon BA BF XR6 Holden Commodore V6 VN VY 0280155968 pictureVintage Atari Gameboy Mods Commodore Pokemon 8-bit Lot + Website-Domain for Sale
$900.0
Vintage Atari Gameboy Mods Commodore Pokemon 8-bit Lot + Website-Domain for Sale picture8 x CM 8164 DRAM 64kx1 164 4864 IC Apple IIe Commodore 64 Oric IBM PC Soviet Era
$9.95
8 x CM 8164 DRAM 64kx1 164 4864 IC Apple IIe Commodore 64 Oric IBM PC Soviet Era picture






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