different color different RichTextField.

I have the values in the array of strings that size is about 100.

I want to show this array of strings through RichTextField.

But I want to show the values is to print in different color.

Hi nitin,

Here I m posting for the custom field color code use this field to display different colors.

public class ColoredLabelField extends RichTextField {

    private int textColor;

    public ColoredLabelField(String text, int textColor, long style) {
        super(text, style);
        this.textColor = textColor;
    }

    public void setTextColor(int color) {
        this.textColor = color;
    }

    protected void paint(Graphics graphics) {
        graphics.setColor(textColor);
        super.paint(graphics);
    }

}

Thank you.

Tags: BlackBerry Developers

Similar Questions

  • Can I make Apple Notes different colors?

    Can I enter records in different colors Notes of Apple?

    If so, they will download to iCloud?

    I'm afraid, it is not possible- notes on iPhone, iPad and iPod touch - Apple Support.

    Inform Apple - http://www.apple.com/feedback/

  • Can I Exchange my iPhone for a different color?

    I have 6 s silver 64 GB iPhone

    can I get an iPhone with the same capacity but different color?

    If you bought less 14 days ago, you can send it back to Apple and get your money back.

    If not, no.

  • Why have the pages I'm ongot different color square and oblong around their?

    There are all the different colors in places and oblong anywhere in the background of pages much. It is difficult to read the words.

    Someone active the option of flashing of painting in Firefox developer tools.

    • with Firefox open
    • Press the menu button on your phone
    • Select settings
    • Select the development tools
    • Uncheck the box flashing paint
  • How can I get the tabs colorful to use different distinct colors for 2 gmail accounts?

    Under Firefox 29.0.1 iMac OSX 10.9.3. I have multiple Google accounts: 2 1 Google Calendar and gmail accounts. Colorful tabs add-on will allow me to choose a color for a gmail account, but it also uses this same color for the other gmail account. How can I get the different colors on 2 gmail accounts?

    In addition, colorful tabs is also the same for my homepage (google.com) and my google calendar. How can I get different colors on these 2?

    Personally, I use 'Fabtabs' for my mozilla FireFox.

    https://addons.Mozilla.org/en-us/Firefox/addon/FabTabs/

    This add-on has problems like that when I use it.

  • Why you do not have your products with different colors? compatible with the colors of the iPhone or the iPad? Example: Gold Earpods, silver, BLACK and Rose Gold.

    Why you do not have your products with different colors? compatible with the colors of the iPhone or the iPad? Example: Gold Earpods, silver, BLACK and Rose Gold.

    You say Apple your wishes on the link below.

    http://www.Apple.com/feedback/

  • I use an IPhone 5. My screen is empty. White color. Calls from if composed of a different number, but cannot respond. What can I do to fix this?

    I use an IPhone 5. My screen is empty. White color. Calls from if composed of a different number, but cannot respond. What can I do to fix this?

    Have you tried to reset the device? Keep holding the home and power buttons at the same time and continue to hold until the Apple appears (compared to 30 seconds - really). If you see the Apple, the reset is progressing and the Slide to Unlock screen will display shortly.

    See you soon,.

    GB

  • Let me know if there is an option to differentiate is with the color of the tab or return background color tab. I use to open differrent pages on the same site in different tab or window, in order to identify each i

    Let me know if there is an option to differentiate is with the color of the tab or return background color tab. I use to open differrent pages on the same site in different tab or window, in order to identify each...

    Try:

  • Why not recently seen sites show in a different color more?

    Yesterday I updated to Firefox 7.0.1 and now my sites recently seen show is no longer in a different color after the display of a Web site and return to the initial list of Web sites. I still want to see which ones I've looked at the research. Can you tell me how to recover this feature again?

    If you talk about the differences in color between visited and not visited in the links on your Web pages as that would be affected by what follows:

    1. change the link colors in your tools > Options > content > fonts and colors: 'Advanced' for which I have blue for Unvisited and magenta for unvisited links. I have all three elements selected "use system colors:," underline links: and 'Allow pages to choose their own colors, instead of my selections above'. "
    2. Data loss in history, such as deleting your browsing history
    3. Private browsing ("Ctrl + Shift + P") will mark all as visited links, even apply to the permanent Private Browsing ("always use private browsing mode") in tools > Options > privacy

    I let him out on the following link and added it, but given what precedes has answered the question, I'm changing that last part a page footnote.

    Which none would be directly related to the update of Firefox, but in these times where the file localstore.rdf in profile you may be affected (corrupted), and the changes made to your toolbars and options will not stick.

  • C70-C-1DV satellite - display shows too little of different colors

    Hello

    I have a Satellite C-C70-1DV, and I have a problem with the mode of display colors: different colors (similar) are displayed on the screen as identical colors - for example, RGB 0/0/0, 1/1/1, 2/2/2, 3/3/3, all are displayed as just black. See this image with 10 light and dark 10 - on my screen, I see that three light and three dark colors.

    The problem becomes particularly annoying to watch movies with dark scenes, because on my screen, it you do not see the transitions fluid, you always color see the lines where the ends of a color and the next color begins.

    Advice on how to fix this?

    Georg

    Cheaper laptops have a little 6 LCD. To get the best contrast you should watch more expensive laptops with a 8-bit LCD, or use an external monitor.

  • I dropped my iPhone 5 c now it has different colored vertical lines

    I dropped it once and the screen cracked, then I dropped it a second time now, the screen is different colored vertical lines this will be under "other repairs" or "screen fix" Please help asap thank you! I can touch the screen and open something, but I don't see it because the view is of different colors. I can hear the audio too... I want to know what repair is because the price is important... Help, please! I tried the hard reset. 5 c 16 gb iPhone

    You can consider to Apple and buy one off replacement for this guarantee as long as you have not yet opened.

  • Pavilion g4: different vertical lines color, continue to change. Download fixesometime in 30-40 min. to work on it.

    It shows the different colored vertical lines. These continue to change, when I turn display down and on the rise again. Sometimes he corrected by this display rotation downwards and upwards. Sometimes half display work correctly with vertical lines on the screen half left. Someone if I play the video, then it is fixed in 20-30 min. There also get fixed when I display stand with a certain pressure (where screen and laptop are connected). If I leave the laptop on these lines, the screen comes on for 3-5 seconds and again the vertical lines are displayed. But the display work done after it is fixed. So, what's the problem?

    Hello @Ankit9,

    Welcome to the HP Forums! If I understand your message that you have a problem with vertical lines on the screen of your laptop Pavilion G4.

    From your description it looks like there may be a connection not tight since the changes in question according to the positioning of the screen, however, you can try after documents for video playback problems and a laptop LCD panel problem.

    If you need help, let me know and I will gladly make all that I can to help. If it helped to solve the problem, please mark this message as accept as a Solution.

    Thank you!

  • I wish that the tabs colorful. is it possible with Firefox? And or each new topic have a different color tab.

    I wish that the tabs colorful. is it possible with Firefox? And or each new topic have a different color tab.

    The ColorfulTabs extension can be useful for you.

  • OfficeJet pro more than 8600: different shades of color on each line of text

    I have 3 printers Officejet 8600 and I have the same problem, regardless of printing from a Windows 8, Windows 7 or a laptop. Whenever I try to print in a font (say green) colored grand (say 48) (say arial) the odd lines have a different shade of green to them even.  This applies to Word and Indesign.  I also did a whiteboard with 14 one lines, a red fill and the first 2-3 red lines were a different shade of red for the others!  I contacted HP technical services and they went through various troubleshooting switching off etc but nothing works. They want to send me a new printhead, but this may not be the same problem with all three printers.  Everyone knows this? Any ideas? Thanks in advance.

    He got is resolved by changing the quality of the paper for "the best". Thank you very much.

  • OfficeJet 7500 a print in different color

    OS - Mac OS X Yosemite 10.10.1

    Printer - Officejet 7500 a E910

    We have a problem in print in Officejet 7500 color, the color is different in print. While the printing system Windows, all good id form. How can we solve this usse?

    Thanks in advance

    Ruggeri

    Hi @Sinoj

    It seems that there could be something in the printing system which is at the origin of the ot printer driver for printing color. Please follow the following steps and let me know the result;

    Reset the printing system

    1. Click on the Apple icon ( ), then click on System Preferences.

Maybe you are looking for

  • My Favorites keep dissappearing

    Im having this problem where the bookmarks dropdown menu and toolbar bookmarks do not display ONE of my favorites. they are all still there however. When I go to disable addons as well to check and see if it's a question the addons section is never e

  • How do I remove the bar of social media?

    Please help, I never use social media bar. I don't understand twitter, never use Facebook, do not have an account g +, pinterest or instagram. How can I make GO AWAY! It doesn't have the little arrow to close, and is not yet transparent, just boring.

  • C240 problem

    My mother used to use this C240 MP3 for Podcasts of Radio to speak here, but now it has its own and I have that, but for some reason, no matter what I do I can't its files out of it, they show not even like being out there on the computer, but they d

  • Compare 14 Alienware and Inspiron 15r... trying to decide what to buy

    trying to decide which laptop is the best for ME I'm not a gamer am new student & need to Microsoft Office for College, but I watch a lot of movies and TV on my laptop trying to decide what to do?

  • Cannot start the PC after MS Updates

    Later installed MS Updates Friday, restarted PC and it appears with the following message to any attempt to boot the PC: Reboot and select proper boot device or insert boot media in selected boot device and press a key. It is a RAID system, and this