JTextArea-Using different colors  for the Strings added

I'm looking for a way to write in a textArea using different colors for the Strings

use SetForeground(Color newForegroundColor) on the JTextArea class
good luck
krishna

Similar Messages

  • How can i do different colors for the category in business graphics

    Hi everybody,
    i have a business graphics and i need different colors for the category. my business graphics is a gantt.
    for example
    category1
    category2
    category2
    and so on.
    Is there a solution for this? How can i do it?
    Best regards,
    Markus

    Sorry.
    In my opinion, this requirement can not be resolved.
    Generally, we use Business Graphic with Category, we just follow:
    DATA:lr_graph TYPE REF TO cl_wd_business_graphics.
    lr_graph = cl_wd_business_graphics=>new_business_graphics(
        bind_series_source = 'NODE_DYN'
        chart_type = cl_wd_business_graphics=>e_chart_type-BARS
        height = 340
        width = 750
    *     BIND_TOOLTIP = 'GRAPH.TT'
        id = 'GRAPH' ).
    DATA: lr_bgr_cs TYPE REF TO cl_wd_category.
    lr_bgr_cs = cl_wd_category=>new_category(
    view = wd_this->mr_view
    bind_description = 'NODE_DYN.CATEGORY').
    lr_graph->set_category( lr_bgr_cs ).
    If we go to SE24, to check  the class "CL_WD_CATEGORY", we cannot find any method  or attribute about how to manipulate  the "Category Font Color"...
    Maybe,any other expert can give you fantastic solution, hope. Best wishes.

  • PWA 2010 timesheet: 2 different colors for the rows "Actual " and "Planned

    Hello,
    To make timesheet easier to read and fill, is it possible to have 2 different colors for the rows “Actual “ and “Planned”?
    Thanks,
    soudha

    Hello Soudha,
    By default the timesheet grid shows the cells in white color. But if you have little coding skills or a developer at your end, you can try this using "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\JsGrid.js" java
    script file.
    You may have to modify it but I recommend to take a backup of the file and test in your test environment first.
    Happy troubleshooting.....
    Vikram Daruru - MSFT

  • Using different templates for the desktop and phone versions of the same blog

    I have a site which was created in Adobe Muse and is hosted on Business Catalyst.
    I have created both a desktop and a phone versions of the site.
    I  want to know how I can integrate the blogs that I  currently have on the desktop site with the phone version that I just did, using different templates for the desktop and phone versions of the same blog. This is in order to ensure that visitors to the blogs on the website are directed to the templates that render correctly for the devices they are using.
    My current approach has been to create both a desktop and phone versions of the blogs. The problem with this however, is that the dates are different and the comments are separated between the two blog versions!
    I  have also tried enabling mobile templates in BC, but still couldn't find a way to specify the mobile versions of the templates for the same blog?
    To recap my problem, I basically  need a solution where the same blog uses different templates for desktop and mobile (both templates use different navigation headings and menu styles)
    Thanks.

    There can be few reason for this, including page contents links or contents used in phone/tablet version.
    Please provide the site url , also try to publish the site as a trial site in Business Catalyst with all layouts which would help to isolate the issue.
    Thanks,
    Sanjit

  • APs using different channels for the same SSID

    Hi,
    This might be a stupid question, but I am wondering why my Aironet 1602i and 2602i access points connected to the same controller would use different channels for the same network. Would this be to avoid interference? If so, I am planning to put 9 access points throughout the office and they will be fairly close to each other. Would this increase the risk of interference?
    Thanks,
    Tibet

    That is normal. The WLC is determining the best channel and being in different channels is the best. When you add more, the WLC will decide by the use if RRM what channels and power levels to allocate to each AP.
    Sent from Cisco Technical Support iPhone App

  • Different colors for the aggregation in the report

    Hi
    In my BEx report I require to show the aggregation in different colors.
    That is suppose my report has 3 characteristics and 2 keyfigures. When the 'Result' appears for characteristic1 it should be shown in blue color(not specific) and when the result appears for characteristic2 it should be shown in red color and when result appears for characteristic3 it should be shown in green color and similarly.
    Has any one already implemented this?
    Please help..
    Thanks and Regards,
    Satya Raj Kumar.

    Hi,
    Many thanks for your reply.
    But this is not what I am looking for.
    I require the result rows in different colors.
    Suppose the result row is based on aggregation of Characteristic 3 then the result row should appear in blue color.
    Suppose the result row is based on aggregation of Characteristic 2 then the result row should appear in green color. and so on.
    Please help on this.
    Thanks and Regards,
    Satya Raj Kumar.

  • Can I use different colours for the different user accounts in my iCal?

    I have my own iCal and one for my boss. I need our appointments to show up in different colours so that I can tell at a glance which are mine and which are his. Currently our appointments show up on the same calendar, on top of each other, and both are coloured red.
    Can I change the colour of one of us?

    Thanks. If there are other people invited to the appointment it comes up with this
    So I don't want to 'move' it or cancel the original appointment. is there another way I can, for example, have my boss's appointments all come up green and mine all come up blue......

  • HLOC Chart: How to use different stroke for different items in a HLOCSeries?

    I want to use different color for the stroke in a HLOC chart based on the openfield, closefiled value.
    It's just like the fillFunction in a ColumnSeries.
    Anybody got any ideas to make this?
    And I would also like to know which class is responsible for the drawing of charts? So that I can alter it and develop one that suits my needs.
    Thanks very much!

    Natasha, thanks!
    I need to override the updateDisplayList function in HLOCItemRenderer to make it draw what I want.

  • Using different color sets for button in one menu

    Hi!
    In DVDSP4 you can have three different sets of color mapping for your menu buttons.
    I'm using TIFFs as backgrounds and a simple black/white TIFF for overlay. I do want to use different colors for my buttons in the same menu. Can I do this with a black/white overlay, or do I have to use an overlay with (four different) colors? My wish is to be able to create one or two color sets and just assigning any of them to one or more buttons in one menu.
    G4 Dual, FCP5, DVDSP4, BitVice, Soundtrack Pro   Mac OS X (10.4.3)   2 GB RAM, SuperDrive

    One Overlay is fine
    What you need to do is set up the color sets in Inspector and assign them to the different buttons. Take a look for "Color Mapping Sets" in the PDF where it details how to do it (PG 219 in DVD SP 3, PG 238 DVD SP 4). Note that it works for selected and activated states for the buttons, not normal state.
    Also note, at least for me anyway, this has always been a buggy feature where sometimes it works properly and sometimes it does not. Never figured out why why either, but sometimes it does not flag the proper set to be used

  • Same logo printing different colors for different file formats?

    I created a logo for a client who will be using it for some printed materials.  I provided the logo in 3 different file formats: EPS, JPEG and Tiff.
    In INDesign and MS Word, the logo is printing a different color for the EPS vs the Jpeg/Tiff file types.  Is there something I'm missing?
    I've even tried changing the color to something completely different and we are getting the same result.  There is STiLL a considerable difference between the Eps file and the other two files.

    No the logo was created for print and I originally had used a pantone color but converted to CMYK.  The actual value is C69 M7 Y0 K0.  When my client inserts the eps file into her InDesign layout, it prints a bright aqua color and if she uses either the jpeg or tiff, it is a much different blue.  We've tried other colors because I was thinking it might just be the fact that it's a blue color... but the same thing happens to other colors. I am wondering if there is some sort of color management setting that is causing the eps to be different?

  • Messenger classic: how can I give different colors to the conversati​on

    In my old bold messenger I had different colors for the received messages (light blue) and the sent messages (white) of the chat. Now they are both on white. How can I change that? 
    Thanks

    This is probably possible in the "conversation" mode that you can activate in the messages options (hit the blackberry menu key when in the messages window).
    There, you can also assign different colors to each account.
    Hope this helps
    Please don't forget to mark as "solved" if your question is replied and to "like" a useful reply to your post ;-)

  • Different colors for hierarchy nodes in WEBI 4.0 (Possible or not)

    Hi Everyone,
    We have been listening a lot about the capability of Webi 4.0 in terms of Hierarchies from BW BEx Query. It works just fine like in BEx Analyzer, but is it possible to create formatted reports like we do in Crystal reports to display different colors for the hierarchy nodes. The reason for asking about this functionality is though Crystal Enterprise also inherits Hierarchical view from BEx Query we still won't be able to drill down in real time to do some interactive analysis.
    Where as Webi 4.0 can allow us to do interactive analysis by allowing us to drill down on the hierarchies, but it would be great to show the Webi report with different colors for the hierarchy nodes along with the drill down functionality, to give users the best look and feel while working with these reports.
    I am trying to achieve this functionality but I am not successful yet and running out of ideas. I am also not sure if this is possible or not. Can anyone throw some light or share there thoughts on this.
    Any comments will be greatly appreciated.
    Thanks & Regards,
    SRV

    Create a variable with:
         =[Object].Depth
    where [Object] has to be the one containing the BEx hierarchy.
    This function will return the hierarchy level starting with 0 (zero).
    You can use the value of the variable the in the formatting rules:
    variable   equal   [hierarchy level]
    to format all hierarchy nodes on the given level.
    R. Uli

  • How can I get Colorful Tabs to use separate colors for 2 different gmail accounts?

    Running Firefox 29.0.1 on iMac OSX 10.9.3. I have multiple Google accounts: 2 gmail accounts and 1 Google Calendar. The Add-on Colorful Tabs will allow me to choose a color for one gmail account , but it also uses that same color for the other gmail account. How can I get different colors on 2 different gmail accounts?
    Also, Colorful Tabs is also doing the same thing for my homepage (google.com) and my google calendar. How can I get different colors on these 2?

    I personally use "Fabtabs" for my mozilla FireFox.
    https://addons.mozilla.org/en-US/firefox/addon/fabtabs/
    This add-on doesn't have any issues like that when I use it.

  • My wife and I share an iCloud account for photo library and iCloud drive mainly for our family photo management, but we use different accounts for iMessage/facetime/calendar/etc. With Yosemite, I can't use continuity/handoff without dumping the photo

    my wife and I share an iCloud account for photo library and iCloud drive mainly for our family photo management, but we use different accounts for iMessage/facetime/calendar/etc. With Yosemite, I can't use continuity/handoff without dumping the primary photo iCloud account and thus our shared photo system. We are running yosemite OS X 10.10 and iOS 8.0.2... Is there any way to do this?

    my wife and I share an iCloud account for photo library and iCloud drive mainly for our family photo management, but we use different accounts for iMessage/facetime/calendar/etc. With Yosemite, I can't use continuity/handoff without dumping the primary photo iCloud account and thus our shared photo system. We are running yosemite OS X 10.10 and iOS 8.0.2... Is there any way to do this?

  • Use two indicators for the same variable in two different VIs

    hello, I want to use two indicators for the same variable in two different VIs running at the same time
    should I use global variables?? I want to avoid because I have lot of variables and it would takes too much memory,I tried with this code but the value of the second indicator is not updated 
    I tried to use the queue and it works but the problem is as i said previously that i have many variables shoud I use a queue for each one??
    what should I do?
    thank you in advance
    cordialy
    Attachments:
    projet.zip ‏13 KB

    CrisSTine01 wrote:
    hello, I want to use two indicators for the same variable in two different VIs running at the same time
    I'm a huge fan of User Events to send updates to GUIs from who knows where.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • Generate a url from a report or function module

    Hi, I'm trying to generate a url from a report and tried using the function module WWW_ITAB_TO_HTML in the report program, as , but i'm not able to get the expected results. The code is given below. Could someone please try and help me resolve this i

  • Macbook pro sleep/wake up problem

    I got macbook pro late 2011 edition and I started to experience problems with it after two month of usage. After I close the lid of my macbook pro and let it sit over night it wont start properly. When I will open the lid my screen will show differen

  • Help With wscompile On A config.xml

    Hello, I'm a newbie to Jax-rpc, so please bear with I'm having difficulties compiling this config.xml: <?xml version="1.0" encoding="UTF-8"?> <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config"> <service name="GetTenQService" targetNa

  • Flash & IE7 Weird Problem

    Help!!! I'm having a problems getting a site to work in IE7. It works fine in Firefox, but in IE7, not a chance. Here's the Link Once in the site, go to the Gallery. Click on any of the two thumbnails on the left. A window will open with a short blur

  • 2-Way SSL with a WebService

    Hi, unfortunately I have some problem to setup a Client that interacts with a Web Service via 2-way SSL. I hope that anybody of you can give me a useful hint to solve the problem. Client Side: I used a Java Client (just for testing) that runs as a pr