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

Similar Messages

  • 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

  • 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

  • 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

  • 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 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

  • Multi-coloured text in table cell

    I have a table where individual cells can have multi-coloured text. To do this I use html when I set the text in a cell renderer. It works fine. However, when the column width is too narrow for the text then the text is wrapped. If the text is not html then the text is not wrapped.
    How can I keep the different colours but make sure the text is not wrapped?
    Thanks

    I never want the text to wrap even if the column width is too small for the text.
    If the text of the renderer was set to abcdefghijklmnand the column is only large enough to show the first 10 chars then the user (obviously) would only see the first 10 chars.
    If I now set the text to <html>ab<font color="#ff0000">cde</font>fghijklmn</html> then, assuming the column is wide enough, the user will see all the text but cde is shown in red.
    However, if the column width is now changed so there is only room to show the first 10 chars then the user will only see abcde not as I would hope abcdefghij

  • Coloured Text in Textfield?

    Text in a textfield in a different colour... is this possible?
    Thanks in advance..
    Sandra

    Take a look at polish
    www.j2mepolish.org

  • In iMessage do the different colours of message mean anything?

    In iMessage do the different colours of message mean anything?

    iMessages can be sent between Apple devices like iPhone, iPod, iPad, Macs. They are free of charge if connected to Wi-Fi and use your data plan if Wi-Fi is not available.
    If the other person does not have an Apple device, those messages are sent as text, depending on your contract you might have a certain number of free messages to send or your carrier will not charge you for sending.
    If an iMessage can't be sent, your iPhone will try to send it as "normal" text message, this setting can be changed in Settings/Messages on your phone.
    Messages lets you exchange text messages with other SMS and MMS devices using your cellular connection, and with other iOS devices using iMessage.
    iMessage is an Apple service that lets you send unlimited messages over Wi-Fi (or cellular connections) to others using iOS 5 or later, or OS X Mountain Lion or later. With iMessage, you can see when other people are typing, and let them know when you’ve read their messages. iMessages are displayed on all of your iOS devices logged in to the same account, so you can start a conversation on one of your devices and continue it on another device. For security, iMessages are encrypted before they’re sent.
    copied from page 66 of the iphone_user_guide

  • Different Colours In Main and Submenus

    Hi All,
    Is it possible to have different text colours for the main menu and the submenus?.
    "ul.MenuBarHorizontal a"   seems to be styling everything and I would prefer to have different colours if possible
    thanks
    Neil
    www.neilmarksphotography.com

    Ben,
    thanks for that, I'll give it a try
    Neil
    Date: Mon, 11 Jan 2010 06:53:38 -0700
    From: [email protected]
    To: [email protected]
    Subject: Different Colours In Main and Submenus
    Hi Neil,
    There are several ways of applying a style rule to your menu.
    One way is to apply a rule to ul.MenuBarHorizontal a. This will affect all as you have already mentioned. Then to add a new rule as follows
    ul.MenuBarHorizontal li ul li {
        background-color: green;
    which will override the first rule for your submenus.
    I hope this helps.
    Ben
    >

  • Can you have a different colour horizontal Spry menu on multiple pages?

    Hi,
    I'm fairly new to Dreamweaver and CSS. So please forgive me ignorance.
    I've created a page with a horizontal spry menu bar, and have edited it according to how I want it to look.. Brilliant!. The problem I have is I want the exact same menu bar on multiple pages but using a different colour scheme for a couple of the pages!. Is this possible? Thanks

    I am sorry, but I do not see that you have added the suggested code to the document as per
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Touring Sport</title>
    <meta name="keywords" content="Football Tours, Youth Football Tours, Junior Football Tours, Boys Football Tours, Girls Football Tours, Ladies Football Tours, Mens Football Tours, European Football Tours, School Football Tours">
    <meta name="description" content="Football Tours in the UK and Europe.">
    <style type="text/css">
    <!--
    body {
         background-image: url(images/Touring%20Sport%20-%20Sports%20Tours,%20Schools%20Tours%20and%20Corporate%20Tours.jpg);
    a:visited {
         color: #660066;
    a:link {
         text-decoration: none;
         color: #660066;
    .Contact_Header {
         font-family: Helvetica;
         color: #660066;
         font-size: 95%;
         text-align: right;
    .Main_Text {
         font-family: Helvetica;
         color: #666;
         text-align: justify;
         font-size: 90%;
    -->
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
    <script type="text/javascript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script><style type="text/css">
    <!--
    a:hover {
         color: #993399;
    --></style></head>
    Gramps

  • Visited links not in different colour at certain sites FF4

    In FF4 the visited links of some sites are forgotten. It is enough that you refresh the site. In FF 3.5 there is no problem.

    Pseudo-classes and container styles are what you need - here
    are some
    tutorials.
    http://www.thepattysite.com/linkstyles1.cfm
    http://www.projectseven.com/tutorials/pseudoclasses/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "mccoole1" <[email protected]> wrote in
    message
    news:fkgmj3$8lq$[email protected]..
    > Following the enormous success I had with a problem I
    posted yesterday - I
    > have
    > decided to test the water of the professionals again.
    >
    > I have set up a home page which I intend to use as a
    template for the rest
    > of
    > the pages/links. I have a Spry menu bar which has white
    text links and a
    > red
    > background. Further down the page I want to link to the
    'small print'
    > (like
    > 'Site Map' 'Contact Us' 'Accessibility' etc). I want
    these links to be a
    > different colour - not background 'red' - but it is
    because of the CSS on
    > the
    > body style in Page Properties.
    >
    > Is there an easy way of overriding this / adding a CSS
    to stop it having
    > the
    > red BG??
    >
    >
    >

Maybe you are looking for

  • PO attachment

    Hi experts Well.... I need to know if doc attached in CV01N i.e., DMS, will automatically pick by the material during PO creation. Ex. I have created a design doc of a material... say X. Now i have to send a PO with the docu to the vendor. While Crea

  • How to get current time in seconds

    Can someone please tell me how to get the current time in seconds. I am currently doing as follows but not sure if its correct or best way: Calendar cal = new GregorianCalendar(); long currentTimeInSeconds = cal.getTimeInMillis()/1000;

  • Itunes library does not appear to be a valid itunes library file

    i'm importing AIFF files into itunes, converting those to AAC and deleting the original AIFF files. i tried to import an album of AIFF's and received a message that i didn't have enough hard drive space to import so itunes would import as many of the

  • TS4124 how to download library from icloud or match

    I may have missed something but I want to download my entire library to my computer so I can use it when I am not connected to the internet.\ I have selected it but can find the download buttom?

  • HT5035 How do I find out if my 'jurisdiction allows for refund of redeemed gift card'?

    I was on CHAT with Michael and found that the $225 worth of App Store cards I entered into Itunes cannot be used for Iphone purchase. The only way I had found to valid the App Store cards were valid was by entering them into Itunes which immediately