Different coloured text in one Textbox

Can someone PLEASE help me!!!!!!!!!!!!!!
I need to know how to have different coloured text in the same textbox.
My application has text being inputted into the textbox every 5 seconds from 2 different sources. I want to differenciate the text by showing the user 2 different colours for each source.
Thank you very much

Acording to the first post it also shows data, so it is a GUI component. i never sow a textbox.
JTextPane can show data in different colors. also JTextArea can.
Noah

Similar Messages

  • Different coloured text in the same crawl

    How can i have different coloured text in a crawl, whenever i use any of the text funciotons, if i change the colour it changes the coulour for all the text, can i not just simply highlight bits and make them different colours?
    cheers,
    Matt

    Use the Boris Title Crawl generator that came bundled with FCP. It will allow you to assign different attributes to individual characters. Alternatively you can do this in Photoshop or with the CHV text generators. http://www.chv-plugins.com/cms/Fx-Script/Text-collection/Text-collection.php?nav anchor=1010026
    -DH

  • Different colour text in textarea

    Hi,
    I was hoping someone could tell me whether it's possible to change the colour of text that is appended to a textarea.
    I'm finishing off a chat server/applet project and i thought it would look better if I could colour code the messages that are displayed on the screen. e.g when a user enters a room the text signifying that is displayed in red, when a user leaves the room the text is coloured red etc.
    I would greatly appreciate any help on this
    Chers
    Mikey

    Sadly to say it is not possible JEditorPane or JTextPane is the only way

  • Different color text in one cell

    How do I set a color for a group of words within a cell leaving the rest of the words black?
    I can make all the text within a cell the same color but when I select the words I want to be a different color the color selector in the toolbar goes away and only fx, Cancel and Accept buttons are available.

    If it is simple text, not the result of a formula, select the words you want to change and select another color from the toolbar or the color panel. That is, unless I didn't understand your request. I don't know where you are seeing Accept, Cancel and Fx.

  • Can you have different colour modes in one image?

    Hi all,
    I work on magazines which are half grayscale and half CMYK. Problem is that I don't know what spreads will be on what pages until I get close to completion. So what I do is make two copies of each image, a CMYK file and a grayscale copy and I find this a bit time consuming and tedious. When I'm working in Illustrator I make a CMYK layer and a Grayscale layer in the one file and switch between the two in InDesign by using the layer options. Is there a similar way to do this in Photoshop? I've experimented with layer comps and using adjustment layers such as Black and White and Channel Mixer, but the file still contains CMYK information which isn't what I need for my grayscale pages. Is there a way to make an adjustment layer that just contains grayscale information?
    Thanks

    Sure. Use an RGB smart object in a container file that you switch between color spaces (CMYK > Grayscale > CMYK). You can create a droplet to convert the files for you, or call an action in PS on open files. Action a black and white adjustment layer being toggled on and off in the RGB smart object, for better conversion to grayscale.

  • Colouring Text

    Hi, I hope I make sense with this.
    I want to display a list showing completed sections. I would
    very much like to display those sections completed in a different
    colour.
    So I was going to start with,
    Contents := “Sections” ^ Return
    Then I was going to use ‘Contents := Contents ^
    “Section 1” ^ Return
    then ‘Contents := Contents ^ “Section 2” ^
    Return and so on.....
    If the section had not been visited then the flow-line would
    just add the text in normal black font colour, if the section had
    been visited I would like to use a decision icon to add the text in
    a green font colour by-passing the add black text icon.
    Is there a way I can add different coloured text to a string?

    The Pc Doctor wrote:
    > Hi, I hope I make sense with this.
    >
    > I want to display a list showing completed sections. I
    would very much like
    > to display those sections completed in a different
    colour.
    >
    > So I was going to start with,
    >
    > Contents := ?Sections? ^ Return
    >
    > Then I was going to use ?Contents := Contents ^ ?Section
    1? ^ Return
    > then ?Contents := Contents ^ ?Section 2? ^ Return and so
    on.....
    >
    > If the section had not been visited then the flow-line
    would just add the text
    > in normal black font colour, if the section had been
    visited I would like to
    > use a decision icon to add the text in a green font
    colour by-passing the add
    > black text icon.
    >
    > Is there a way I can add different coloured text to a
    string?
    >
    >
    Embed a test statement an colour the whole thing including
    the curly
    brackets the colour you want. Eg.
    {test(foo,"red text","")}{test(~foo,"blue text","")}
    Andrew Poulos

  • I have two different accounts on my iMac 2011 OSX 10.8.2. When you type text in one account, he dialed in the second account at a time. how to solve it?

    I have two different accounts on my iMac 2011 OCX 10.8.2. When you type text in one account, he dialed in the second account at a time. how to solve it?

    I have 2 users on the imac. when entering text in the first account it is duplicated in the second

  • How can I have two different styles of hyperlink text on one page?

    Hi
    I'm using an external css document to control the look of my site, and would like to have two differnet types of hyperlink.
    One for within the content text, which would be the same size and style as the content text, and one that is BIGGER and BOLDER for 'title' hyperlinks.
    At the minute I have one set up for the content text, which is:
    a:link {
    color: #0000CC;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    color: #666666;
    a:hover {
    text-decoration: underline;
    color: #0000CC;
    a:active {
    text-decoration: none;
    color: #666666;
    How can I set another style up for the title links without affecting the look of the content links??

    Pseudo-classes & Descendant selectors is what you're after...
    From your example, I would leave those styles for your standard links and would create new rules for the content area and then follow similar for your 'titles' or you could use Headings <h1> are they are actually headings that you want styled.
    The following is assuming that you have used a Div or a container with an ID of mainContent.
    #mainContent a:link {
         text-decoration: underline;
         color: #66CC99;
    #mainContent a:visited {
         text-decoration: underline;
         color: #66CC99;
    #mainContent a:hover {
         text-decoration: none;
         color: #333333;
         background-color: #FFFFFF;
    #mainContent a:active {
         text-decoration: underline;
         color: #66CC99;
    For another area of the page, say a left sidebar and gave it an ID of #leftcolumn 
    (I've used the same styles for easier copying pasting, but naturally, you would style then differently)
    #leftcolumn a:link {
         text-decoration: underline;
         color: #66CC99;
    #leftcolumn a:visited {
         text-decoration: underline;
         color: #66CC99;
    #leftcolumn a:hover {
         text-decoration: none;
         color: #333333;
         background-color: #FFFFFF;
    #leftcolumn a:active {
         text-decoration: underline;
         color: #66CC99;

  • How do I select the entire text when the focus is moved to one TextBox?

    How do I select the entire text when the focus is moved to one TextBox?
    There are three TextBoxes.  I use <TextBox TabIndex="1"/> to set the order they are selected.  When I enter one specific TextBox, I would like to have the entire text selected ... one key stroke removes all of the text in that TextBox.
    bhs67

    I do it the following way:
    1.  Override the OnStartup for the application.  Use the following code: (VB.NET)
    EventManager.RegisterClassHandler(GetType(TextBox), TextBox.GotFocusEvent, New RoutedEventHandler(AddressOf TextBox_GotFocus))
    2.  In the event handler use this code (again VB.NET)
    Private Sub TextBox_GotFocus(ByVal sender As Object, ByVal e As RoutedEventArgs)
    _theTextBox = CType(sender, TextBox)
    If setFocusTimer IsNot Nothing Then
    RemoveHandler setFocusTimer.Tick, AddressOf setFocusTimer_Tick
    End If
    setFocusTimer = New DispatcherTimer
    setFocusTimer.Interval = TimeSpan.FromMilliseconds(10)
    AddHandler setFocusTimer.Tick, AddressOf setFocusTimer_Tick
    setFocusTimer.Start()
    End Sub
    Private Sub setFocusTimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
    setFocusTimer.Stop()
    _theTextBox.SelectAll()
    End Sub
    What this does is register a handler for every textbox in your application.  This will execute when the GotFocus event is raised and will allow you to do whatever (in this case select all) you want.  A great way of handling things at the application
    level.
    Lloyd Sheen

  • Can You Make Text Links Different Colours in DW Cs5?

    Hi everyone, in DW Cs5 how do you make text links on the same page different colours, I have some text links across the top of the page, these go with a certain colour scheme but some more on the page it's self these need to be a different colour.
    I have done this before by accident but unfortunately I have no longer got that file. Information for text in either html or css would be very helpful.
    Many thanks
    Gareth

    Change this:
    <style type="text/css">
    .def13grey4 {
         font-size: 14px;
         font-weight: bold;
         color: #333;
    .def14grey4 a {
         color: #333;
    </style>
    to this:
    <style type="text/css">
    .def14grey4 a:link{font-weight: bold; color: #333;}
    .def14grey4 a:visited{color: #999;}
    .def14grey4 a:hover,
    .def14grey4 a:active,
    .def14grey4 a:focus{color:#4488C3;} /**adjust colors to suit**/
    </style>
    Change this in the HTML:
    <td height="354" colspan="3" valign="top" bgcolor="#CCCCCC" class="def13grey4">
    <p>Black Shirts #002</p>
    </td>
    To this:
    <td height="354" colspan="3" valign="top" bgcolor="#CCCCCC">
    <p><a class="def14grey4 href="some-link.html">Black Shirts #002</a></p>
    </td>
    HTML & CSS Tutorials - http://w3schools.com/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Adding new text in SHC HTML template with different colour

    Hi Gurus,
    We are using SRM5.0 Server 550 and SP14 and classic scenario.
    Is it possible to change the colour of a newly added text in Shopping cart HTML template?
    I mean we have a requirement to add a new text in HTML template of shopping cart and with a different colour so that it woulod be highlighted whenever users try to shop something.
    Can anyone let me know the pros and cons of such a thing, if later on they upgrade to SRM7.0 and its feasibility?
    Regards,
    Teja

    Hi,
    You can enhance/modify the HTML template.
    SRM 7.0 does not use ITS HTML template. So SRM 5.0 is the last version using ITS HTML template and no impact for upgrading to SRM 7.0.
    Regards,
    Masa

  • How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    Or choose Window > Arrange > Tile
    And, you of course can copy/paste without tiling.

  • How to make the text differently colour displayed in a message box

    I would like to display colour text
    in a message box for each message on each line of message (carriage return).

    just trying to help
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    color_box_constant.jpg ‏51 KB

  • How do I create a logotype with the letters in 2 different colours

    I need help with a logo. I'm trying to create a logo were it's as though a lamp is shining on the type so part of the letters are in 2 different colours.

    Set the type using the point text tool (meaning click then type, not click-drag-release then type). Use two type objects, one for each line.
    Draw the path for the light with the pen tool, fill it with yellow, and move it to the back (Object > Arrange > Send to Back).
    Select the top line of text and the spotlight and go to Object > Clipping Mask > Make.
    Now select just the type objects with the Direct Select tool (white arrow) and fill them with blue.

  • Coloured text cycle

    Hi there,
    Need some help in creating text (individual letters) cycling through different colours. For example each letter cycling through say 6 colours, each letter a different colour to the next. Trying to create a behavior to do this but without much luck. Any suggestions??

    Here's what I'd try. Add 6 different Sequence Text behaviors, each one the same length, but offset in the timeline. Set the color as the parameter and give each one a different color. Keep the spread at 0 for all behaviors.
    The sequence text behavior will change the color of each individual letter in your word. Offsetting the position of the other behaviors ensures that each character has a different color. You'll also probably have to increase the Loops parameter to 2 so that each color appears on each letter at least once.
    Andy

Maybe you are looking for