Different color text in text area???????

hi,
i am working on applet in which i want to show different color text in text area????????
could any one help me

I'm not sure it replies, we have developed an
editorkit for the JEditorPane for colorizing a
text with a property file describing a grammar. We
provide in the packaging a trivial sample
for coloring a java syntax in an applet.
http://www.japisoft.com/syntaxcolor
And of course it also requires that you buy it, and a.brillant forgot to mention that a.brillant has a financial interest in this product.

Similar Messages

  • RoboHelp HTML 9 - CHM file Different color shown for text of dropdown hotspot.

    Dear all,
    In Design view of Robohelp, I see all dropdown hotspot text are green.  But when I preview or genereate the topic to CHM file, all dropdown hotspot text are blue like color of hyperlinks.
    I don't understand why it behaves like that. Please tell me.

    I recreated your index keywords and have identified what is going on.
    When you click on CTV, Accept it opens the correct topic.
    Now notice what happens when you start typing app after CTV. The highlighting goes to Enable so when you press Enter, Rh opens the highlighted topic. The highlighting will go to the last sub keyword. Try adding Zulu.
    I will see if I can create something similar tomorrow using another authoring tool.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Line chart with different "colors": Values not available are displayed as 0

    Hello,
    I defined a line chart with more than one lines (aka "colors" in the chart wizzard) - each line representing the (monthly) values of a year. x axis are the 12 months of the year; y axis are the values.
    When one defines such a line chart in BIP client there is a choice between sum, average and count for the data values.
    This is no problem for my template as there is only one value per month/year - so I used sum.
    The problem: for the actual year there are no values for future months . But bip nevertheless shows 0 for this month/year... Can one prevent this?
    Regards
    Peter

    Solved it finally - unavailable values must explicitly be passed to the report with nothing contained in the value tag.

  • How can I make different color on text in the same layer "by script" ?

    [Photoshop CC 2014]
    I need to write JavaScript  to make different color on the texts (or contents) that's in the same text layer. But I can't still find the way.
    example from ...
    to ...
    I have been searching for this solution on the internet for a half of day, but I can't find it.
    Help me please...

    I've tried so many times. For simple operation about changing Text color (or format), PS generates huge codes as below.
    Perharps I have to spend all day or (a few days), to understand them.
    // =======================================================
    var idsetd = charIDToTypeID( "setd" );
        var desc118 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref21 = new ActionReference();
            var idTxLr = charIDToTypeID( "TxLr" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref21.putEnumerated( idTxLr, idOrdn, idTrgt );
        desc118.putReference( idnull, ref21 );
        var idT = charIDToTypeID( "T   " );
            var desc119 = new ActionDescriptor();
            var idTxt = charIDToTypeID( "Txt " );
            desc119.putString( idTxt, """ABC""" );
            var idwarp = stringIDToTypeID( "warp" );
                var desc120 = new ActionDescriptor();
                var idwarpStyle = stringIDToTypeID( "warpStyle" );
                var idwarpStyle = stringIDToTypeID( "warpStyle" );
                var idwarpNone = stringIDToTypeID( "warpNone" );
                desc120.putEnumerated( idwarpStyle, idwarpStyle, idwarpNone );
                var idwarpValue = stringIDToTypeID( "warpValue" );
                desc120.putDouble( idwarpValue, 0.000000 );
                var idwarpPerspective = stringIDToTypeID( "warpPerspective" );
                desc120.putDouble( idwarpPerspective, 0.000000 );
                var idwarpPerspectiveOther = stringIDToTypeID( "warpPerspectiveOther" );
                desc120.putDouble( idwarpPerspectiveOther, 0.000000 );
                var idwarpRotate = stringIDToTypeID( "warpRotate" );
                var idOrnt = charIDToTypeID( "Ornt" );
                var idHrzn = charIDToTypeID( "Hrzn" );
                desc120.putEnumerated( idwarpRotate, idOrnt, idHrzn );
            var idwarp = stringIDToTypeID( "warp" );
            desc119.putObject( idwarp, idwarp, desc120 );
            var idtextGridding = stringIDToTypeID( "textGridding" );
            var idtextGridding = stringIDToTypeID( "textGridding" );
            var idNone = charIDToTypeID( "None" );
            desc119.putEnumerated( idtextGridding, idtextGridding, idNone );
            var idOrnt = charIDToTypeID( "Ornt" );
            var idOrnt = charIDToTypeID( "Ornt" );
            var idVrtc = charIDToTypeID( "Vrtc" );
            desc119.putEnumerated( idOrnt, idOrnt, idVrtc );
            var idAntA = charIDToTypeID( "AntA" );
            var idAnnt = charIDToTypeID( "Annt" );
            var idAnCr = charIDToTypeID( "AnCr" );
            desc119.putEnumerated( idAntA, idAnnt, idAnCr );
            var idbounds = stringIDToTypeID( "bounds" );
                var desc121 = new ActionDescriptor();
                var idLeft = charIDToTypeID( "Left" );
                var idPnt = charIDToTypeID( "#Pnt" );
                desc121.putUnitDouble( idLeft, idPnt, -36.000008 );
                var idTop = charIDToTypeID( "Top " );
                var idPnt = charIDToTypeID( "#Pnt" );
                desc121.putUnitDouble( idTop, idPnt, -0.000002 );
                var idRght = charIDToTypeID( "Rght" );
                var idPnt = charIDToTypeID( "#Pnt" );
                desc121.putUnitDouble( idRght, idPnt, 36.000000 );
                var idBtom = charIDToTypeID( "Btom" );
                var idPnt = charIDToTypeID( "#Pnt" );
                desc121.putUnitDouble( idBtom, idPnt, 216.000000 );
            var idbounds = stringIDToTypeID( "bounds" );
            desc119.putObject( idbounds, idbounds, desc121 );
            var idboundingBox = stringIDToTypeID( "boundingBox" );
                var desc122 = new ActionDescriptor();
                var idLeft = charIDToTypeID( "Left" );
                var idPnt = charIDToTypeID( "#Pnt" );
                desc122.putUnitDouble( idLeft, idPnt, -25.451172 );
                var idTop = charIDToTypeID( "Top " );
                var idPnt = charIDToTypeID( "#Pnt" );
                desc122.putUnitDouble( idTop, idPnt, 10.834839 );
                var idRght = charIDToTypeID( "Rght" );
                var idPnt = charIDToTypeID( "#Pnt" );
                desc122.putUnitDouble( idRght, idPnt, 25.189453 );
                var idBtom = charIDToTypeID( "Btom" );
                var idPnt = charIDToTypeID( "#Pnt" );
                desc122.putUnitDouble( idBtom, idPnt, 204.834839 );
            var idboundingBox = stringIDToTypeID( "boundingBox" );
            desc119.putObject( idboundingBox, idboundingBox, desc122 );
            var idtextShape = stringIDToTypeID( "textShape" );
                var list19 = new ActionList();
                    var desc123 = new ActionDescriptor();
                    var idTEXT = charIDToTypeID( "TEXT" );
                    var idTEXT = charIDToTypeID( "TEXT" );
                    var idPnt = charIDToTypeID( "Pnt " );
                    desc123.putEnumerated( idTEXT, idTEXT, idPnt );
                    var idOrnt = charIDToTypeID( "Ornt" );
                    var idOrnt = charIDToTypeID( "Ornt" );
                    var idVrtc = charIDToTypeID( "Vrtc" );
                    desc123.putEnumerated( idOrnt, idOrnt, idVrtc );
                    var idTrnf = charIDToTypeID( "Trnf" );
                        var desc124 = new ActionDescriptor();
                        var idxx = stringIDToTypeID( "xx" );
                        desc124.putDouble( idxx, 1.000000 );
                        var idxy = stringIDToTypeID( "xy" );
                        desc124.putDouble( idxy, 0.000000 );
                        var idyx = stringIDToTypeID( "yx" );
                        desc124.putDouble( idyx, 0.000000 );
                        var idyy = stringIDToTypeID( "yy" );
                        desc124.putDouble( idyy, 1.000000 );
                        var idtx = stringIDToTypeID( "tx" );
                        desc124.putDouble( idtx, 0.000000 );
                        var idty = stringIDToTypeID( "ty" );
                        desc124.putDouble( idty, 0.000000 );
                    var idTrnf = charIDToTypeID( "Trnf" );
                    desc123.putObject( idTrnf, idTrnf, desc124 );
                    var idrowCount = stringIDToTypeID( "rowCount" );
                    desc123.putInteger( idrowCount, 1 );
                    var idcolumnCount = stringIDToTypeID( "columnCount" );
                    desc123.putInteger( idcolumnCount, 1 );
                    var idrowMajorOrder = stringIDToTypeID( "rowMajorOrder" );
                    desc123.putBoolean( idrowMajorOrder, true );
                    var idrowGutter = stringIDToTypeID( "rowGutter" );
                    var idPnt = charIDToTypeID( "#Pnt" );
                    desc123.putUnitDouble( idrowGutter, idPnt, 0.000000 );
                    var idcolumnGutter = stringIDToTypeID( "columnGutter" );
                    var idPnt = charIDToTypeID( "#Pnt" );
                    desc123.putUnitDouble( idcolumnGutter, idPnt, 0.000000 );
                    var idSpcn = charIDToTypeID( "Spcn" );
                    var idPnt = charIDToTypeID( "#Pnt" );
                    desc123.putUnitDouble( idSpcn, idPnt, 0.000000 );
                    var idframeBaselineAlignment = stringIDToTypeID( "frameBaselineAlignment" );
                    var idframeBaselineAlignment = stringIDToTypeID( "frameBaselineAlignment" );
                    var idalignByAscent = stringIDToTypeID( "alignByAscent" );
                    desc123.putEnumerated( idframeBaselineAlignment, idframeBaselineAlignment, idalignByAscent );
                    var idfirstBaselineMinimum = stringIDToTypeID( "firstBaselineMinimum" );
                    var idPnt = charIDToTypeID( "#Pnt" );
                    desc123.putUnitDouble( idfirstBaselineMinimum, idPnt, 0.000000 );
                    var idbase = stringIDToTypeID( "base" );
                        var desc125 = new ActionDescriptor();
                        var idHrzn = charIDToTypeID( "Hrzn" );
                        desc125.putDouble( idHrzn, 0.000000 );
                        var idVrtc = charIDToTypeID( "Vrtc" );
                        desc125.putDouble( idVrtc, 0.000000 );
                    var idPnt = charIDToTypeID( "Pnt " );
                    desc123.putObject( idbase, idPnt, desc125 );
                var idtextShape = stringIDToTypeID( "textShape" );
                list19.putObject( idtextShape, desc123 );
            desc119.putList( idtextShape, list19 );
            var idTxtt = charIDToTypeID( "Txtt" );
                var list20 = new ActionList();
                    var desc126 = new ActionDescriptor();
                    var idFrom = charIDToTypeID( "From" );
                    desc126.putInteger( idFrom, 0 );
                    var idT = charIDToTypeID( "T   " );
                    desc126.putInteger( idT, 1 );
                    var idTxtS = charIDToTypeID( "TxtS" );
                        var desc127 = new ActionDescriptor();
                        var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );
                        desc127.putBoolean( idstyleSheetHasParent, true );
                        var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );
                        desc127.putString( idfontPostScriptName, """TimesNewRomanPSMT""" );
                        var idFntN = charIDToTypeID( "FntN" );
                        desc127.putString( idFntN, """Times New Roman""" );
                        var idFntS = charIDToTypeID( "FntS" );
                        desc127.putString( idFntS, """Regular""" );
                        var idScrp = charIDToTypeID( "Scrp" );
                        desc127.putInteger( idScrp, 0 );
                        var idFntT = charIDToTypeID( "FntT" );
                        desc127.putInteger( idFntT, 1 );
                        var idSz = charIDToTypeID( "Sz  " );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc127.putUnitDouble( idSz, idPnt, 72.000000 );
                        var idimpliedFontSize = stringIDToTypeID( "impliedFontSize" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc127.putUnitDouble( idimpliedFontSize, idPnt, 72.000000 );
                        var iddigitSet = stringIDToTypeID( "digitSet" );
                        var iddigitSet = stringIDToTypeID( "digitSet" );
                        var iddefaultDigits = stringIDToTypeID( "defaultDigits" );
                        desc127.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );
                        var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc127.putUnitDouble( idmarkYDistFromBaseline, idPnt, 100.000000 );
                        var idClr = charIDToTypeID( "Clr " );
                            var desc128 = new ActionDescriptor();
                            var idRd = charIDToTypeID( "Rd  " );
                            desc128.putDouble( idRd, 99.998474 );
                            var idGrn = charIDToTypeID( "Grn " );
                            desc128.putDouble( idGrn, 99.998474 );
                            var idBl = charIDToTypeID( "Bl  " );
                            desc128.putDouble( idBl, 99.998474 );
                        var idRGBC = charIDToTypeID( "RGBC" );
                        desc127.putObject( idClr, idRGBC, desc128 );
                        var idstrokeColor = stringIDToTypeID( "strokeColor" );
                            var desc129 = new ActionDescriptor();
                            var idRd = charIDToTypeID( "Rd  " );
                            desc129.putDouble( idRd, 255.000000 );
                            var idGrn = charIDToTypeID( "Grn " );
                            desc129.putDouble( idGrn, 255.000000 );
                            var idBl = charIDToTypeID( "Bl  " );
                            desc129.putDouble( idBl, 255.000000 );
                        var idRGBC = charIDToTypeID( "RGBC" );
                        desc127.putObject( idstrokeColor, idRGBC, desc129 );
                        var idbaseParentStyle = stringIDToTypeID( "baseParentStyle" );
                            var desc130 = new ActionDescriptor();
                            var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );
                            desc130.putString( idfontPostScriptName, """MyriadPro-Regular""" );
                            var idFntN = charIDToTypeID( "FntN" );
                            desc130.putString( idFntN, """Myriad Pro""" );
                            var idFntS = charIDToTypeID( "FntS" );
                            desc130.putString( idFntS, """Regular""" );
                            var idScrp = charIDToTypeID( "Scrp" );
                            desc130.putInteger( idScrp, 0 );
                            var idFntT = charIDToTypeID( "FntT" );
                            desc130.putInteger( idFntT, 0 );
                            var idSz = charIDToTypeID( "Sz  " );
                            var idPnt = charIDToTypeID( "#Pnt" );
                            desc130.putUnitDouble( idSz, idPnt, 12.000000 );
                            var idimpliedFontSize = stringIDToTypeID( "impliedFontSize" );
                            var idPnt = charIDToTypeID( "#Pnt" );
                            desc130.putUnitDouble( idimpliedFontSize, idPnt, 12.000000 );
                            var idHrzS = charIDToTypeID( "HrzS" );
                            desc130.putDouble( idHrzS, 100.000000 );
                            var idVrtS = charIDToTypeID( "VrtS" );
                            desc130.putDouble( idVrtS, 100.000000 );
                            var idsyntheticBold = stringIDToTypeID( "syntheticBold" );
                            desc130.putBoolean( idsyntheticBold, false );
                            var idsyntheticItalic = stringIDToTypeID( "syntheticItalic" );
                            desc130.putBoolean( idsyntheticItalic, false );
                            var idautoLeading = stringIDToTypeID( "autoLeading" );
                            desc130.putBoolean( idautoLeading, true );
                            var idTrck = charIDToTypeID( "Trck" );
                            desc130.putInteger( idTrck, 0 );
                            var idBsln = charIDToTypeID( "Bsln" );
                            var idPnt = charIDToTypeID( "#Pnt" );
                            desc130.putUnitDouble( idBsln, idPnt, 0.000000 );
                            var idimpliedBaselineShift = stringIDToTypeID( "impliedBaselineShift" );
                            var idPnt = charIDToTypeID( "#Pnt" );
                            desc130.putUnitDouble( idimpliedBaselineShift, idPnt, 0.000000 );
                            var idcharacterRotation = stringIDToTypeID( "characterRotation" );
                            desc130.putDouble( idcharacterRotation, 0.000000 );
                            var idAtKr = charIDToTypeID( "AtKr" );
                            var idAtKr = charIDToTypeID( "AtKr" );
                            var idmetricsKern = stringIDToTypeID( "metricsKern" );
                            desc130.putEnumerated( idAtKr, idAtKr, idmetricsKern );
                            var idfontCaps = stringIDToTypeID( "fontCaps" );
                            var idfontCaps = stringIDToTypeID( "fontCaps" );
                            var idNrml = charIDToTypeID( "Nrml" );
                            desc130.putEnumerated( idfontCaps, idfontCaps, idNrml );
                            var iddigitSet = stringIDToTypeID( "digitSet" );
                            var iddigitSet = stringIDToTypeID( "digitSet" );
                            var iddefaultDigits = stringIDToTypeID( "defaultDigits" );
                            desc130.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );
                            var iddirOverride = stringIDToTypeID( "dirOverride" );
                            var iddirOverride = stringIDToTypeID( "dirOverride" );
                            var iddirOverrideDefault = stringIDToTypeID( "dirOverrideDefault" );
                            desc130.putEnumerated( iddirOverride, iddirOverride, iddirOverrideDefault );
                            var idkashidas = stringIDToTypeID( "kashidas" );
                            var idkashidas = stringIDToTypeID( "kashidas" );
                            var idkashidaDefault = stringIDToTypeID( "kashidaDefault" );
                            desc130.putEnumerated( idkashidas, idkashidas, idkashidaDefault );
                            var iddiacVPos = stringIDToTypeID( "diacVPos" );
                            var iddiacVPos = stringIDToTypeID( "diacVPos" );
                            var iddiacVPosOpenType = stringIDToTypeID( "diacVPosOpenType" );
                            desc130.putEnumerated( iddiacVPos, iddiacVPos, iddiacVPosOpenType );
                            var iddiacXOffset = stringIDToTypeID( "diacXOffset" );
                            var idPnt = charIDToTypeID( "#Pnt" );
                            desc130.putUnitDouble( iddiacXOffset, idPnt, 0.000000 );
                            var iddiacYOffset = stringIDToTypeID( "diacYOffset" );
                            var idPnt = charIDToTypeID( "#Pnt" );
                            desc130.putUnitDouble( iddiacYOffset, idPnt, 0.000000 );
                            var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );
                            var idPnt = charIDToTypeID( "#Pnt" );
                            desc130.putUnitDouble( idmarkYDistFromBaseline, idPnt, 100.000000 );
                            var idbaseline = stringIDToTypeID( "baseline" );
                            var idbaseline = stringIDToTypeID( "baseline" );
                            var idNrml = charIDToTypeID( "Nrml" );
                            desc130.putEnumerated( idbaseline, idbaseline, idNrml );
                            var idotbaseline = stringIDToTypeID( "otbaseline" );
                            var idotbaseline = stringIDToTypeID( "otbaseline" );
                            var idNrml = charIDToTypeID( "Nrml" );
                            desc130.putEnumerated( idotbaseline, idotbaseline, idNrml );
                            var idstrikethrough = stringIDToTypeID( "strikethrough" );
                            var idstrikethrough = stringIDToTypeID( "strikethrough" );
                            var idstrikethroughOff = stringIDToTypeID( "strikethroughOff" );
                            desc130.putEnumerated( idstrikethrough, idstrikethrough, idstrikethroughOff );
                            var idUndl = charIDToTypeID( "Undl" );
                            var idUndl = charIDToTypeID( "Undl" );
                            var idunderlineOff = stringIDToTypeID( "underlineOff" );
                            desc130.putEnumerated( idUndl, idUndl, idunderlineOff );
                            var idunderlineOffset = stringIDToTypeID( "underlineOffset" );
                            var idPnt = charIDToTypeID( "#Pnt" );
                            desc130.putUnitDouble( idunderlineOffset, idPnt, 0.000000 );
                            var idligature = stringIDToTypeID( "ligature" );
                            desc130.putBoolean( idligature, true );
                            var idaltligature = stringIDToTypeID( "altligature" );
                            desc130.putBoolean( idaltligature, false );
                            var idcontextualLigatures = stringIDToTypeID( "contextualLigatures" );
                            desc130.putBoolean( idcontextualLigatures, false );
                            var idalternateLigatures = stringIDToTypeID( "alternateLigatures" );
                            desc130.putBoolean( idalternateLigatures, false );
                            var idoldStyle = stringIDToTypeID( "oldStyle" );
                            desc130.putBoolean( idoldStyle, false );
                            var idfractions = stringIDToTypeID( "fractions" );
                            desc130.putBoolean( idfractions, false );
                            var idordinals = stringIDToTypeID( "ordinals" );
                            desc130.putBoolean( idordinals, false );
                            var idswash = stringIDToTypeID( "swash" );
                            desc130.putBoolean( idswash, false );
                            var idtitling = stringIDToTypeID( "titling" );
                            desc130.putBoolean( idtitling, false );
                            var idconnectionForms = stringIDToTypeID( "connectionForms" );
                            desc130.putBoolean( idconnectionForms, false );
                            var idstylisticAlternates = stringIDToTypeID( "stylisticAlternates" );
                            desc130.putBoolean( idstylisticAlternates, false );
                            var idornaments = stringIDToTypeID( "ornaments" );
                            desc130.putBoolean( idornaments, false );
                            var idjustificationAlternates = stringIDToTypeID( "justificationAlternates" );
                            desc130.putBoolean( idjustificationAlternates, false );
                            var idfigureStyle = stringIDToTypeID( "figureStyle" );
                            var idfigureStyle = stringIDToTypeID( "figureStyle" );
                            var idNrml = charIDToTypeID( "Nrml" );
                            desc130.putEnumerated( idfigureStyle, idfigureStyle, idNrml );
                            var idproportionalMetrics = stringIDToTypeID( "proportionalMetrics" );
                            desc130.putBoolean( idproportionalMetrics, false );
                            var idkana = stringIDToTypeID( "kana" );
                            desc130.putBoolean( idkana, false );
                            var iditalics = stringIDToTypeID( "italics" );
                            desc130.putBoolean( iditalics, false );
                            var idruby = stringIDToTypeID( "ruby" );
                            desc130.putBoolean( idruby, false );
                            var idbaselineDirection = stringIDToTypeID( "baselineDirection" );
                            var idbaselineDirection = stringIDToTypeID( "baselineDirection" );
                            var idrotated = stringIDToTypeID( "rotated" );
                            desc130.putEnumerated( idbaselineDirection, idbaselineDirection, idrotated );
                            var idtextLanguage = stringIDToTypeID( "textLanguage" );
                            var idtextLanguage = stringIDToTypeID( "textLanguage" );
                            var idenglishLanguage = stringIDToTypeID( "englishLanguage" );
                            desc130.putEnumerated( idtextLanguage, idtextLanguage, idenglishLanguage );
                            var idjapaneseAlternate = stringIDToTypeID( "japaneseAlternate" );
                            var idjapaneseAlternate = stringIDToTypeID( "japaneseAlternate" );
                            var iddefaultForm = stringIDToTypeID( "defaultForm" );
                            desc130.putEnumerated( idjapaneseAlternate, idjapaneseAlternate, iddefaultForm );
                            var idmojiZume = stringIDToTypeID( "mojiZume" );
                            desc130.putDouble( idmojiZume, 0.000000 );
                            var idgridAlignment = stringIDToTypeID( "gridAlignment" );
                            var idgridAlignment = stringIDToTypeID( "gridAlignment" );
                            var idroman = stringIDToTypeID( "roman" );
                            desc130.putEnumerated( idgridAlignment, idgridAlignment, idroman );
                            var idenableWariChu = stringIDToTypeID( "enableWariChu" );
                            desc130.putBoolean( idenableWariChu, false );
                            var idwariChuCount = stringIDToTypeID( "wariChuCount" );
                            desc130.putInteger( idwariChuCount, 2 );
                            var idwariChuLineGap = stringIDToTypeID( "wariChuLineGap" );
                            desc130.putInteger( idwariChuLineGap, 0 );
                            var idwariChuScale = stringIDToTypeID( "wariChuScale" );
                            desc130.putDouble( idwariChuScale, 0.500000 );
                            var idwariChuWidow = stringIDToTypeID( "wariChuWidow" );
                            desc130.putInteger( idwariChuWidow, 2 );
                            var idwariChuOrphan = stringIDToTypeID( "wariChuOrphan" );
                            desc130.putInteger( idwariChuOrphan, 2 );
                            var idwariChuJustification = stringIDToTypeID( "wariChuJustification" );
                            var idwariChuJustification = stringIDToTypeID( "wariChuJustification" );
                            var idwariChuAutoJustify = stringIDToTypeID( "wariChuAutoJustify" );
                            desc130.putEnumerated( idwariChuJustification, idwariChuJustification, idwariChuAutoJustify );
                            var idtcyUpDown = stringIDToTypeID( "tcyUpDown" );
                            desc130.putInteger( idtcyUpDown, 0 );
                            var idtcyLeftRight = stringIDToTypeID( "tcyLeftRight" );
                            desc130.putInteger( idtcyLeftRight, 0 );
                            var idleftAki = stringIDToTypeID( "leftAki" );
                            desc130.putDouble( idleftAki, -1.000000 );
                            var idrightAki = stringIDToTypeID( "rightAki" );
                            desc130.putDouble( idrightAki, -1.000000 );
                            var idjiDori = stringIDToTypeID( "jiDori" );
                            desc130.putInteger( idjiDori, 0 );
                            var idnoBreak = stringIDToTypeID( "noBreak" );
                            desc130.putBoolean( idnoBreak, false );
                            var idClr = charIDToTypeID( "Clr " );
                                var desc131 = new ActionDescriptor();
                                var idRd = charIDToTypeID( "Rd  " );
                                desc131.putDouble( idRd, 0.000000 );
                                var idGrn = charIDToTypeID( "Grn " );
                                desc131.putDouble( idGrn, 0.000000 );
                                var idBl = charIDToTypeID( "Bl  " );
                                desc131.putDouble( idBl, 0.000000 );
                            var idRGBC = charIDToTypeID( "RGBC" );
                            desc130.putObject( idClr, idRGBC, desc131 );
                            var idstrokeColor = stringIDToTypeID( "strokeColor" );
                                var desc132 = new ActionDescriptor();
                                var idRd = charIDToTypeID( "Rd  " );
                                desc132.putDouble( idRd, 0.000000 );
                                var idGrn = charIDToTypeID( "Grn " );
                                desc132.putDouble( idGrn, 0.000000 );
                                var idBl = charIDToTypeID( "Bl  " );
                                desc132.putDouble( idBl, 0.000000 );
                            var idRGBC = charIDToTypeID( "RGBC" );
                            desc130.putObject( idstrokeColor, idRGBC, desc132 );
                            var idFl = charIDToTypeID( "Fl  " );
                            desc130.putBoolean( idFl, true );
                            var idStrk = charIDToTypeID( "Strk" );
                            desc130.putBoolean( idStrk, false );
                            var idfillFirst = stringIDToTypeID( "fillFirst" );
                            desc130.putBoolean( idfillFirst, true );
                            var idfillOverPrint = stringIDToTypeID( "fillOverPrint" );
                            desc130.putBoolean( idfillOverPrint, false );
                            var idstrokeOverPrint = stringIDToTypeID( "strokeOverPrint" );
                            desc130.putBoolean( idstrokeOverPrint, false );
                            var idlineCap = stringIDToTypeID( "lineCap" );
                            var idlineCap = stringIDToTypeID( "lineCap" );
                            var idbuttCap = stringIDToTypeID( "buttCap" );
                            desc130.putEnumerated( idlineCap, idlineCap, idbuttCap );
                            var idlineJoin = stringIDToTypeID( "lineJoin" );
                            var idlineJoin = stringIDToTypeID( "lineJoin" );
                            var idmiterJoin = stringIDToTypeID( "miterJoin" );
                            desc130.putEnumerated( idlineJoin, idlineJoin, idmiterJoin );
                            var idlineWidth = stringIDToTypeID( "lineWidth" );
                            var idPnt = charIDToTypeID( "#Pnt" );
                            desc130.putUnitDouble( idlineWidth, idPnt, 1.000000 );
                            var idmiterLimit = stringIDToTypeID( "miterLimit" );
                            var idPnt = charIDToTypeID( "#Pnt" );
                            desc130.putUnitDouble( idmiterLimit, idPnt, 4.000000 );
                            var idlineDashoffset = stringIDToTypeID( "lineDashoffset" );
                            desc130.putDouble( idlineDashoffset, 0.000000 );
                        var idTxtS = charIDToTypeID( "TxtS" );
                        desc127.putObject( idbaseParentStyle, idTxtS, desc130 );
                    var idTxtS = charIDToTypeID( "TxtS" );
                    desc126.putObject( idTxtS, idTxtS, desc127 );
                var idTxtt = charIDToTypeID( "Txtt" );
                list20.putObject( idTxtt, desc126 );
                    var desc133 = new ActionDescriptor();
                    var idFrom = charIDToTypeID( "From" );
                    desc133.putInteger( idFrom, 1 );
                    var idT = charIDToTypeID( "T   " );
                    desc133.putInteger( idT, 2 );
                    var idTxtS = charIDToTypeID( "TxtS" );
                        var desc134 = new ActionDescriptor();
                        var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );
                        desc134.putBoolean( idstyleSheetHasParent, true );
                        var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );
                        desc134.putString( idfontPostScriptName, """TimesNewRomanPSMT""" );
                        var idFntN = charIDToTypeID( "FntN" );
                        desc134.putString( idFntN, """Times New Roman""" );
                        var idFntS = charIDToTypeID( "FntS" );
                        desc134.putString( idFntS, """Regular""" );
                        var idScrp = charIDToTypeID( "Scrp" );
                        desc134.putInteger( idScrp, 0 );
                        var idFntT = charIDToTypeID( "FntT" );
                        desc134.putInteger( idFntT, 1 );
                        var idSz = charIDToTypeID( "Sz  " );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc134.putUnitDouble( idSz, idPnt, 72.000000 );
                        var idimpliedFontSize = stringIDToTypeID( "impliedFontSize" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc134.putUnitDouble( idimpliedFontSize, idPnt, 72.000000 );
                        var iddigitSet = stringIDToTypeID( "digitSet" );
                        var iddigitSet = stringIDToTypeID( "digitSet" );
                        var iddefaultDigits = stringIDToTypeID( "defaultDigits" );
                        desc134.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );
                        var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc134.putUnitDouble( idmarkYDistFromBaseline, idPnt, 100.000000 );
                        var idClr = charIDToTypeID( "Clr " );
                            var desc135 = new ActionDescriptor();
                            var idRd = charIDToTypeID( "Rd  " );
                            desc135.putDouble( idRd, 199.996948 );
                            var idGrn = charIDToTypeID( "Grn " );
                            desc135.putDouble( idGrn, 99.998474 );
                            var idBl = charIDToTypeID( "Bl  " );
                            desc135.putDouble( idBl, 199.996948 );
                        var idRGBC = charIDToTypeID( "RGBC" );
                        desc134.putObject( idClr, idRGBC, desc135 );
                        var idstrokeColor = stringIDToTypeID( "strokeColor" );
                            var desc136 = new ActionDescriptor();
                            var idRd = charIDToTypeID( "Rd  " );
                            desc136.putDouble( idRd, 255.000000 );
                            var idGrn = charIDToTypeID( "Grn " );
                            desc136.putDouble( idGrn, 255.000000 );
                            var idBl = charIDToTypeID( "Bl  " );
                            desc136.putDouble( idBl, 255.000000 );
                        var idRGBC = charIDToTypeID( "RGBC" );
                        desc134.putObject( idstrokeColor, idRGBC, desc136 );
                    var idTxtS = charIDToTypeID( "TxtS" );
                    desc133.putObject( idTxtS, idTxtS, desc134 );
                var idTxtt = charIDToTypeID( "Txtt" );
                list20.putObject( idTxtt, desc133 );
                    var desc137 = new ActionDescriptor();
                    var idFrom = charIDToTypeID( "From" );
                    desc137.putInteger( idFrom, 2 );
                    var idT = charIDToTypeID( "T   " );
                    desc137.putInteger( idT, 4 );
                    var idTxtS = charIDToTypeID( "TxtS" );
                        var desc138 = new ActionDescriptor();
                        var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );
                        desc138.putBoolean( idstyleSheetHasParent, true );
                        var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );
                        desc138.putString( idfontPostScriptName, """TimesNewRomanPSMT""" );
                        var idFntN = charIDToTypeID( "FntN" );
                        desc138.putString( idFntN, """Times New Roman""" );
                        var idFntS = charIDToTypeID( "FntS" );
                        desc138.putString( idFntS, """Regular""" );
                        var idScrp = charIDToTypeID( "Scrp" );
                        desc138.putInteger( idScrp, 0 );
                        var idFntT = charIDToTypeID( "FntT" );
                        desc138.putInteger( idFntT, 1 );
                        var idSz = charIDToTypeID( "Sz  " );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc138.putUnitDouble( idSz, idPnt, 72.000000 );
                        var idimpliedFontSize = stringIDToTypeID( "impliedFontSize" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc138.putUnitDouble( idimpliedFontSize, idPnt, 72.000000 );
                        var iddigitSet = stringIDToTypeID( "digitSet" );
                        var iddigitSet = stringIDToTypeID( "digitSet" );
                        var iddefaultDigits = stringIDToTypeID( "defaultDigits" );
                        desc138.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );
                        var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc138.putUnitDouble( idmarkYDistFromBaseline, idPnt, 100.000000 );
                        var idClr = charIDToTypeID( "Clr " );
                            var desc139 = new ActionDescriptor();
                            var idRd = charIDToTypeID( "Rd  " );
                            desc139.putDouble( idRd, 99.998474 );
                            var idGrn = charIDToTypeID( "Grn " );
                            desc139.putDouble( idGrn, 99.998474 );
                            var idBl = charIDToTypeID( "Bl  " );
                            desc139.putDouble( idBl, 99.998474 );
                        var idRGBC = charIDToTypeID( "RGBC" );
                        desc138.putObject( idClr, idRGBC, desc139 );
                        var idstrokeColor = stringIDToTypeID( "strokeColor" );
                            var desc140 = new ActionDescriptor();
                            var idRd = charIDToTypeID( "Rd  " );
                            desc140.putDouble( idRd, 255.000000 );
                            var idGrn = charIDToTypeID( "Grn " );
                            desc140.putDouble( idGrn, 255.000000 );
                            var idBl = charIDToTypeID( "Bl  " );
                            desc140.putDouble( idBl, 255.000000 );
                        var idRGBC = charIDToTypeID( "RGBC" );
                        desc138.putObject( idstrokeColor, idRGBC, desc140 );
                    var idTxtS = charIDToTypeID( "TxtS" );
                    desc137.putObject( idTxtS, idTxtS, desc138 );
                var idTxtt = charIDToTypeID( "Txtt" );
                list20.putObject( idTxtt, desc137 );
            desc119.putList( idTxtt, list20 );
            var idparagraphStyleRange = stringIDToTypeID( "paragraphStyleRange" );
                var list21 = new ActionList();
                    var desc141 = new ActionDescriptor();
                    var idFrom = charIDToTypeID( "From" );
                    desc141.putInteger( idFrom, 0 );
                    var idT = charIDToTypeID( "T   " );
                    desc141.putInteger( idT, 4 );
                    var idparagraphStyle = stringIDToTypeID( "paragraphStyle" );
                        var desc142 = new ActionDescriptor();
                        var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );
                        desc142.putBoolean( idstyleSheetHasParent, true );
                        var idAlgn = charIDToTypeID( "Algn" );
                        var idAlg = charIDToTypeID( "Alg " );
                        var idLeft = charIDToTypeID( "Left" );
                        desc142.putEnumerated( idAlgn, idAlg, idLeft );
                        var idfirstLineIndent = stringIDToTypeID( "firstLineIndent" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc142.putUnitDouble( idfirstLineIndent, idPnt, 0.000000 );
                        var idimpliedFirstLineIndent = stringIDToTypeID( "impliedFirstLineIndent" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc142.putUnitDouble( idimpliedFirstLineIndent, idPnt, 0.000000 );
                        var idstartIndent = stringIDToTypeID( "startIndent" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc142.putUnitDouble( idstartIndent, idPnt, 0.000000 );
                        var idimpliedStartIndent = stringIDToTypeID( "impliedStartIndent" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc142.putUnitDouble( idimpliedStartIndent, idPnt, 0.000000 );
                        var idendIndent = stringIDToTypeID( "endIndent" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc142.putUnitDouble( idendIndent, idPnt, 0.000000 );
                        var idimpliedEndIndent = stringIDToTypeID( "impliedEndIndent" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc142.putUnitDouble( idimpliedEndIndent, idPnt, 0.000000 );
                        var idspaceBefore = stringIDToTypeID( "spaceBefore" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc142.putUnitDouble( idspaceBefore, idPnt, 0.000000 );
                        var idimpliedSpaceBefore = stringIDToTypeID( "impliedSpaceBefore" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc142.putUnitDouble( idimpliedSpaceBefore, idPnt, 0.000000 );
                        var idspaceAfter = stringIDToTypeID( "spaceAfter" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc142.putUnitDouble( idspaceAfter, idPnt, 0.000000 );
                        var idimpliedSpaceAfter = stringIDToTypeID( "impliedSpaceAfter" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc142.putUnitDouble( idimpliedSpaceAfter, idPnt, 0.000000 );
                        var iddropCapMultiplier = stringIDToTypeID( "dropCapMultiplier" );
                        desc142.putInteger( iddropCapMultiplier, 1 );
                        var idautoLeadingPercentage = stringIDToTypeID( "autoLeadingPercentage" );
                        desc142.putDouble( idautoLeadingPercentage, 1.200000 );
                        var idleadingType = stringIDToTypeID( "leadingType" );
                        var idleadingType = stringIDToTypeID( "leadingType" );
                        var idleadingBelow = stringIDToTypeID( "leadingBelow" );
                        desc142.putEnumerated( idleadingType, idleadingType, idleadingBelow );
                        var iddirectionType = stringIDToTypeID( "directionType" );
                        var iddirectionType = stringIDToTypeID( "directionType" );
                        var iddirLeftToRight = stringIDToTypeID( "dirLeftToRight" );
                        desc142.putEnumerated( iddirectionType, iddirectionType, iddirLeftToRight );
                        var idkashidaWidthType = stringIDToTypeID( "kashidaWidthType" );
                        var idkashidaWidthType = stringIDToTypeID( "kashidaWidthType" );
                        var idkashidaWidthMedium = stringIDToTypeID( "kashidaWidthMedium" );
                        desc142.putEnumerated( idkashidaWidthType, idkashidaWidthType, idkashidaWidthMedium );
                        var idjustificationMethodType = stringIDToTypeID( "justificationMethodType" );
                        var idjustificationMethodType = stringIDToTypeID( "justificationMethodType" );
                        var idjustifMethodAutomatic = stringIDToTypeID( "justifMethodAutomatic" );
                        desc142.putEnumerated( idjustificationMethodType, idjustificationMethodType, idjustifMethodAutomatic );
                        var idhyphenate = stringIDToTypeID( "hyphenate" );
                        desc142.putBoolean( idhyphenate, true );
                        var idhyphenateWordSize = stringIDToTypeID( "hyphenateWordSize" );
                        desc142.putInteger( idhyphenateWordSize, 6 );
                        var idhyphenatePreLength = stringIDToTypeID( "hyphenatePreLength" );
                        desc142.putInteger( idhyphenatePreLength, 2 );
                        var idhyphenatePostLength = stringIDToTypeID( "hyphenatePostLength" );
                        desc142.putInteger( idhyphenatePostLength, 2 );
                        var idhyphenateLimit = stringIDToTypeID( "hyphenateLimit" );
                        desc142.putInteger( idhyphenateLimit, 0 );
                        var idhyphenationZone = stringIDToTypeID( "hyphenationZone" );
                        desc142.putDouble( idhyphenationZone, 36.000000 );
                        var idhyphenateCapitalized = stringIDToTypeID( "hyphenateCapitalized" );
                        desc142.putBoolean( idhyphenateCapitalized, true );
                        var idhyphenationPreference = stringIDToTypeID( "hyphenationPreference" );
                        desc142.putDouble( idhyphenationPreference, 0.500000 );
                        var idjustificationWordMinimum = stringIDToTypeID( "justificationWordMinimum" );
                        desc142.putDouble( idjustificationWordMinimum, 0.800000 );
                        var idjustificationWordDesired = stringIDToTypeID( "justificationWordDesired" );
                        desc142.putDouble( idjustificationWordDesired, 1.000000 );
                        var idjustificationWordMaximum = stringIDToTypeID( "justificationWordMaximum" );
                        desc142.putDouble( idjustificationWordMaximum, 1.330000 );
                        var idjustificationLetterMinimum = stringIDToTypeID( "justificationLetterMinimum" );
                        desc142.putDouble( idjustificationLetterMinimum, 0.000000 );
                        var idjustificationLetterDesired = stringIDToTypeID( "justificationLetterDesired" );
                        desc142.putDouble( idjustificationLetterDesired, 0.000000 );
                        var idjustificationLetterMaximum = stringIDToTypeID( "justificationLetterMaximum" );
                        desc142.putDouble( idjustificationLetterMaximum, 0.000000 );
                        var idjustificationGlyphMinimum = stringIDToTypeID( "justificationGlyphMinimum" );
                        desc142.putDouble( idjustificationGlyphMinimum, 1.000000 );
                        var idjustificationGlyphDesired = stringIDToTypeID( "justificationGlyphDesired" );
                        desc142.putDouble( idjustificationGlyphDesired, 1.000000 );
                        var idjustificationGlyphMaximum = stringIDToTypeID( "justificationGlyphMaximum" );
                        desc142.putDouble( idjustificationGlyphMaximum, 1.000000 );
                        var idsingleWordJustification = stringIDToTypeID( "singleWordJustification" );
                        var idAlg = charIDToTypeID( "Alg " );
                        var idJstA = charIDToTypeID( "JstA" );
                        desc142.putEnumerated( idsingleWordJustification, idAlg, idJstA );
                        var idhangingRoman = stringIDToTypeID( "hangingRoman" );
                        desc142.putBoolean( idhangingRoman, false );
                        var idautoTCY = stringIDToTypeID( "autoTCY" );
                        desc142.putInteger( idautoTCY, 0 );
                        var idkeepTogether = stringIDToTypeID( "keepTogether" );
                        desc142.putBoolean( idkeepTogether, true );
                        var idburasagari = stringIDToTypeID( "burasagari" );
                        var idburasagari = stringIDToTypeID( "burasagari" );
                        var idburasagariNone = stringIDToTypeID( "burasagariNone" );
                        desc142.putEnumerated( idburasagari, idburasagari, idburasagariNone );
                        var idpreferredKinsokuOrder = stringIDToTypeID( "preferredKinsokuOrder" );
                        var idpreferredKinsokuOrder = stringIDToTypeID( "preferredKinsokuOrder" );
                        var idpushIn = stringIDToTypeID( "pushIn" );
                        desc142.putEnumerated( idpreferredKinsokuOrder, idpreferredKinsokuOrder, idpushIn );
                        var idkurikaeshiMojiShori = stringIDToTypeID( "kurikaeshiMojiShori" );
                        desc142.putBoolean( idkurikaeshiMojiShori, false );
                        var idtextEveryLineComposer = stringIDToTypeID( "textEveryLineComposer" );
                        desc142.putBoolean( idtextEveryLineComposer, false );
                        var iddefaultTabWidth = stringIDToTypeID( "defaultTabWidth" );
                        desc142.putDouble( iddefaultTabWidth, 36.000000 );
                        var iddefaultStyle = stringIDToTypeID( "defaultStyle" );
                            var desc143 = new ActionDescriptor();
                            var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );
                            desc143.putString( idfontPostScriptName, """MyriadPro-Regular""" );
                            var idFntN = charIDToTypeID( "FntN" );
                            desc143.putString( idFntN, """Myriad Pro""" );
                            var idFntS = charIDToTypeID( "FntS" );
                            desc143.putString( idFntS, """Regular""" );
                            var idScrp = charIDToTypeID( "Scrp" );
                            desc143.putInteger( idScrp, 0 );
                            var idFntT = charIDToTypeID( "FntT" );
                            desc143.putInteger( idFntT, 0 );
                            var idSz = charIDToTypeID( "Sz  " );
                            var idPnt = charIDToTypeID( "#Pnt" );
                            desc143.putUnitDouble( idSz, idPnt, 12.000000 );
                            var idHrzS = charIDToTypeID( "HrzS" );
                            desc143.putDouble( idHrzS, 100.000000 );
                            var idVrtS = charIDToTypeID( "VrtS" );
                            desc143.putDouble( idVrtS, 100.000000 );
                            var idsyntheticBold = stringIDToTypeID( "syntheticBold" );
                            desc143.putBoolean( idsyntheticBold, false );
                            var idsyntheticItalic = stringIDToTypeID( "syntheticItalic" );
                            desc143.putBoolean( idsyntheticItalic, false );
                            var idautoLeading = stringIDToTypeID( "autoLeading" );
                            desc143.putBoolean( idautoLeading, true );
                            var idTrck = charIDToTypeID( "Trck" );
                            desc143.putInteger( idTrck, 0 );
                            var idBsln = charIDToTypeID( "Bsln" );
                            var idPnt = charIDToTypeID( "#Pnt" );
                            desc143.putUnitDouble( idBsln, idPnt, 0.000000 );
                            var idcharacterRotation = stringIDToTypeID( "characterRotation" );
                            desc143.putDouble( idcharacterRotation, 0.000000 );
       

  • Need to apply table fill color based on text content

    Totally new to Indesign-scripting – but really need a solution to this:
    I have a table
    I want to fill the table cell with a different color based on text content.
    If cell contents the text "Apple" fill color of cell should be color swatch "Red"
    If cell contents the text "Banana" fill color of cell should be color swatch "Yellow"
    Any help most appriciated!

    Hi Franke,
    Try the below code, may it will helpful:
    var myDoc = app.activeDocument
    //var myCell = app.activeDocument.textFrames.everyItem().tables.everyItem().cells.everyItem().getElement s()
    app.findTextPreferences = app.changeTextPreferences = null
    app.findTextPreferences.findWhat = "Apple"
    var myFound = myDoc.findText()
    for(i=0; i<myFound.length; i++)
        if(myFound[i].parent.constructor.name == "Cell")
        myFound[i].parent.fillColor = "aaa"
    If the above code helps you, then please give Helpful or Correct Answers.
    Because for the last 3 months only I started my Indesign Scripting Career.
    With the help of Forum legends I can able to reply for simple questions.
    Thanks all...
    Regards
    BEGINNER

  • Add different Colors to Calendar Overlay Settings color

    Dear All,
             I'm trying to show events on a calendar with different colors. The events are categorized based on Status field of
           Calendar list and I have two statuses. 1. Confirmed 2. Planning.
            When I create calendar overlays for two statues I'm only getting following colors.
            Dark Teal, Dark Blue, Dark Green, Olive Green, Red, Dark Purple Brown.   
     Can you please tell me how can I add some more different colors like yellow, sky blue to this drop down list.
            I referred this article
    http://davidlozzi.com/2012/01/26/color-code-your-sharepoint-calendar/
    Thanks,
    Dilip

    Hi,
    The colors are controlled by the css classes ms-acal-color1 to ms-acal-color9.
    You can override to the style as below, then add the style into a content editor web part in the calendar view.
    <style type="text/css">
    .ms-acal-color1{
    background-color:lime !important;
    </style>
    Here is a similar thread for your reference:
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/01159adf-7630-47ee-8938-b30bd0c37e83/any-way-to-customize-the-calendar-overlay-color-possibilities
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Photoshop color variables or text heading styles? are they possible?

    I am desigining a template which I would like to make in 15-20 different colors. Is there a way to set a color as a variable say "color1" and then set color1 equal to some value, say "#334f74" and then any instance of "color1" would be updated when I changed the value. For example if I have 10 layers each with a color overlay in the blending options they would all be updated to match the new color.
    Also, is there some sort of photoshop "heading" system similar to Word, where I can select font size color, aliasing, weight, spacing, etc and save it as a "heading", then assign that heading to my text boxes? So if I change the "heading" then anything using that heading type would be updated.
    This all seems like it should be basic functionality for a professional tool like photoshop, but I have been playing around with the variable settings and whatnot and cannot figure it out.
    Thanks!

    Mylenium is right.
    Not only is Photoshop an image editor, it is already bloated with additional features that are not needed if somebody has the correct application for the job.
    We don't need more features, we need improvements on problem areas!

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

  • How to change the color of text in Teat Area

    Pls tell me how can i print two different lines in two different colors inside the same text area.
    Because whenever i set the color it sets the color for the complete text area.
    I want to print "Hello..." with color red and "Hi..." with color green in the same text area.
    Pls help me out...

    hi,
    u should use swing component JTextPane instead of textarea to change the color of the text.
    for eg:
    JTextPane textPane;
    JScrollPane panescrollpane;
    textPane=new JTextPane();
    panescrollpane=new JScrollPane(textPane);
    panescrollpane.setVisible(true);
    String[] initString =
    request+newline
    String[] initStyles =
    { "regular"
    Style def = StyleContext.getDefaultStyleContext().
    getStyle(StyleContext.DEFAULT_STYLE);
    Style regular = myClient.textPane.addStyle("regular", def);
    StyleConstants.setFontFamily(def, "SansSerif");
    StyleConstants.setForeground(regular,Color.orange);
    Document doc = textPane.getDocument();
    try {
    for (int i=0; i < initString.length; i++) {
    doc.insertString(doc.getLength(), initString,
    textPane.getStyle(initStyles[i]));
    } catch (BadLocationException ble) {
    // System.err.println("Couldn't insert initial text.");
    Hope this helps..
    regards,
    Kalpana.

  • Changing the text in each dataGrid row to a different color

    Okay I am going to try and be as clear as possible with this,
    so bare with me.
    What I am trying to do is make it so that when my
    arraycollection objects that I have retrieved from a web service
    are loaded in (by using the "dataProvider" attribute) my dataGrid
    that some sort of code will take place changing the color of each
    line of text (all the objects stored in the array collection are
    string types) and display each rows text in a different color.
    Now after looking into it, it seems the only way to alter the
    color of the text is to use some sort of style or format but it
    seems it only effects text in a "textArea, textField, textInput"
    etc... SOOO I figured why not create a itemRenderer that contains
    one of those and put it into the dataGrid... Which I did and still
    can't figure out a way to make it so you can dynamically alter the
    color based on a set of rbg values stored in a array the same size
    as the rowCount of the datagrid.
    so I am rather stumpped in what to do.. I DON'T want to
    change the background color of each row, so alternatingItemColor is
    out of the question, I just want the text displayed in each row to
    be a different color.... And I want all this color changing to
    happen either before the data is inputted into the dataGrid
    (manipulating the arraycollection some how..) or when its all
    already in there, it all needs to happen in code no user
    interaction.
    I was thinking perhaps maybe I could create a item Renderer
    object that contains the compenent (the textArea in it) and just
    make a array of item Renderer objects and pass those into the
    dataGrid, but I don't think that is possible.
    ANY IDEAS AT ALL!! On how to change the color of the text in
    each row of the datagrid to a different color would be a HUGE,
    HUGE!!! help. Or any info on how to setup a datagrid listener that
    listens for when a object (a row) from the arraycollection is added
    to the datagrid... Perhaps I could use that info some how to my
    advantage.
    email me, if you like I don't care I just need a answer to
    this its driving me crazy! I can change the background row color
    based on a array of rgb values but I can't change the color of the
    item in that row based on array of rgb values, ARG!
    [email protected]
    thanx in advanced.

    <mx:itemRenderer>
    <mx:Component>
    <mx:Label color = "red" />
    </mx:Component>
    </mx:itemRenderer>
    want to make it so I can change the color of the label on the
    dynamically by calling some sort of method I have created.. is that
    possible? if so coudl you please give a example, thanx!

  • Text messages different colors?

    The text messages I send are different colors. Some of their background are blue and some are green. Why is that?

    cbracken428 wrote:
    So my sent text message is blue, does that mean the person didn't receive it? And some of the messages I have sent to this person are green?
    Blue means the message was sent as an iMessage, using data, not your SMS allowance. Green means it was sent as a regular SMS. It also means that at the time you sent it, one or both of you didn't have a data connection.
    For further information, take a look at the manual.
    http://support.apple.com/manuals
    Best of luck.

  • Display of text of different rows with different color - JTable

    Hi all !
    I have struck in a problem. I have to display the different rows with different color in the JTable. I have created an arraylist in the model class, which stores color of all the rows. Now in renderer class, I am just picking up color from the arraylist, taking rowIndex as index for arraylist. I used to set foreground color for each row in the renderer class. The problem is that it is not showing all the rows properly, sometimes it show all the rows correctly, but as i resize the window/panel, it starts behaving abnormally, some text is painted properly, but other aren't.
    Does anybody have any solution regarding this problem.
    One thing i want to mention is that in getTableCellRendererComponent() method, i used to retrive the color everytime, and setting the foreground color of the text. Is this a right approach or some other technique have to be followed.
    here is code of renderer class ---
    import java.awt.*;
    import javax.swing.*;
    * Renderer to plot stage record table.
    public class ExStageCellRenderer extends javax.swing.table.DefaultTableCellRenderer
        Color curColor;
         * returns component to be painted, overridding this method from
         * DefaultCellRenderer
         * @param table
         *            table whose component has to be plotted
         * @param value
         *            value of that particular cell
         * @param isSelected
         *            is Cell selected
         * @param hasFocus
         *            has the cell got focus
         * @param row
         *            row of the cell
         * @param column
         *            column of the cell
         * @return painted component
        public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row,
                int column)
            Component component = super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column);
            ExStageDataModel model = (ExStageDataModel)table.getModel ();       
            if (curColor instanceof Color) {
                    curColor = model.getColor(row);
                } else {
                    // If color unknown, use table's foreground color
                    curColor = table.getForeground();
            String tooltip = "";
            StringBuffer stringBuffer = new StringBuffer ();
            for (int i = 0; i < table.getColumnCount (); i++)
                    Object Value = table.getValueAt (row, i);
                    if (Value == null) continue;
                    stringBuffer.append (Value.toString () + "    ");
            tooltip += stringBuffer.toString ();
            tooltip = tooltip.trim ();
            ((JComponent) component).setToolTipText (tooltip);
            if (column == 1)
                this.setHorizontalAlignment (SwingConstants.CENTER);
            else if (column == 0 || column == 4 || column == 5)
                this.setHorizontalAlignment (SwingConstants.LEFT);
            else
                this.setHorizontalAlignment (SwingConstants.RIGHT);
            // LOOK!! should turn tip off if there is none !!
            component.setForeground (this.curColor);
            //System.out.println("render : " + component.getBounds ());
            //component.validate ();
            component.update (component.getGraphics ());
            return component;
    Waiting for reply....
    Code snooker

    Hmm, why are you doing the curColor instanceof? What does this accomplish? I don't see any reason to ask what it was before; all you should be interested in here is what you want it to be now.
    All you should have to do is say:
    this.setForeground(model.getColor(row));I also don't see why you're doing the update() -- JTable is going to do that for you at the appropriate time, you have no idea if now is the right time to do it or not. In fact it probably isn't, you're probably updating the previously-drawn cell with your new color and alignment, which may be the strange behavior you're seeing.
    Also, I don't see why you're doing the super. All that's going to do is return "this", so why not just use "this"?
    Well, without knowing your larger code or exactly what you're trying to accomplish, maybe I'm just missing something.
    I've just recently been working on a program where I had some similar requirements -- different foreground and background colors and alignment -- and I found it much cleaner to create a class to hold all this data, and then create a default renderer for that class. Then I made some constructors for this "attribute" class that let me set whatever I need, like
    public CellAttrib(String s,Color c,int alignment,Border border)
      this.s=s;
      this.c=c;
      this.border=border;
    // with suitable defaults ...
    pubic CellAtrtrib(String s)
      this.s=s;
      this.c=Color.BLACK;
      this.border=null;
    }Then the renderer just queried the cell-attributes class, as in:
    setForeground(value.getColor());
    setHorizontalAlignment(value.getAlignment());
    setBorder(value.getBorder);

  • E book" it tells me that the bI have prepared a photobook, made a pdf and when I press "buy the book is missing photos on one ore more pages. The book does not miss any photos or text, all layouts are ok, the background color is ok. Can anybody help me?

    I have prepared a photo book, made a pdf and when I press "buy thhe book" it tells me that the book is missing photos on one ore more pages. The book does not miss any photos or text, all layouts are ok, the background color is ok. Can anybody help me?

    You are missing one or more photos - youprobably have a page background that requires a photo which is behind a page with photos on it - all pages must either have a photo or be a color - if you have a gray background it requires a photo - look through the book carefully and be sure to look at the background on any full page photos - you will find one or more missing photos
    LN

  • Double contacts as "iPhone"...my phone saves the same number twice, once with a 1 before the area code and one without it. It causes two different threads in my texts even of they're saved as the same contact

    my phone saves the same number twice, once with a 1 before the area code and one without it. It causes two different threads in my texts even of they're saved as the same contact

    My wife is having the same problems as a reciever. She works in a school as a teaching assistant and her teacher sends messages that are mixed with previous texts from ages ago.
    Can anyone shed some light on this problem or is it only her and this poster?
    2m42s

  • How to change the color of the text in the Text Field or in the text area??

    HI all,
    i think its a very simple problem, still, can anyone tell me how i can change the color of the text and also its font, before i display it in either a textfield or a text area.
    bharath

    Just Use:
    JTextField.setForeground(Color.RED);
    so SIMPLE na!
    Balakumar .M
    http://i5bala.blogspot.com
    --

Maybe you are looking for

  • Mini display to s-video won't work in windows xp on macbook 1.1

    I am trying to get my mini display adapter to work in Windows xp service pack 3 on my macbook 1.1, all I get is a black flash on the screen but no picture, it works fin on the Mac side, I am trying to record a pripriority insight .AV video to a vcr a

  • JWindow blocking mouse wheel event?

    I have created a custom JPanel that acts as a container for another custom component that needs to receive mouse wheel events. When I place the custom JPanel in a JWindow the mouse wheel events do not get invoked, all though other mouse events work j

  • [certain number] item(s) could not be synced.  See itunes for more information????

    Okay so recently I got a gift card with a £10 credit.  Now i have tried to buy an app for my iphone.  My iphone is on a different account to my itunes on my mac and so I authorized the account on my phone onto itunes.  Then I plugged in my phone and

  • SAP ECC 6.0 file system Restore

    Dear Friends, Happy Holi. I have restore file system backup of our development server to another host having oracle 10g and ECC 6.0. After restore database has been up successfully. But listner is not running when I trid to run listner it is giving t

  • ST06 Disk I/O, clock speed of CPU's

    Hello All, I want to know how to determine 1.Disk IO-Speed in GByte/h (maximum uncached read speed). 2.Clock speed of the CPU in Giga Hertz. 3. SPAM version(I have no access to SPAM transaction) The above 2 can be obtained from ST06, but can anybody