How Do I Make Text Colored in a JTextPane

I currently have a program that uses a JTextArea to display text that the user has typed into a Text Field. This is working and i now want to be able to make parts of this text different colors. I was looking in the tutorials and it looks like i need to use a JTextPane but i am not sure how to do this, does anyone have any advice? Thanks in advance.

going86 wrote:
The tutorial does not explain hot to do it very well, it is hard to understand.Then give it your best shot, and come back with your code and your specific points of misunderstanding. The onus of effort here must be on you.

Similar Messages

  • How can i make text in 4 colors??

    Hello
    i'm making a short film in "premiere" and i want to add some text effect
    so i using "after effect" for the text effect...
    my question is how can i make text in 4 colors (which each letter get 1 diffrent colors from each corner)
    i know how to do it in the premiere  but i couldnt find this option in after effect
    Thanks

    Select the text you wish to adjust with the Text Selection tool. 
    Click on the text colour box in the Text Pallete and select a colour.
    Repeat with each new section of text.

  • How do change the text color in the variable screen ?

    Hi Experts ,
    I would like to know about , How do change the text color in the variable screen ?
    Using web templates (Analytical) can get the output. It has the variable screen contains 6 fields (Company code, Country , Region , COB, Plant and Purchasing Group). I want to make RED color text on Plant. Please help me .
    Thank you ,
    Prasad.

    Hi,
    I am looking for nearly the same. What I have found is that it seems to manipulate the SAP theme that is used in standard when template is executed in the portal. Just display the source code of the HTML and there you will see the included SAP theme (normally SAP_TRADESHOW). Then you have to go to the SAP portal and change this stuff. But for that you have to know where to find it and what impact this change has.
    I am not pretty sure if this is the right way. But as I want to change the standard layout of a whole template to a customer specific layout I think there is no other way in BI7.0.
    Regards,
    Peter

  • How do I make text vertical in a table

    How do I make text vertical within a table using pages '09?

    You need to type the text in a Textbox, turn off text wrap, rotate that 90° using the Metric Inspector then position it over the cells you want the text vertical.
    Peter

  • How to identify the text color in a word doc.?

    how to identify the text color in a word doc.?
    I need to read a word document using java code. which contains many strings with different colors.
    i need to identify the color and giving the marks accordingly like
    test in blue color so
    test marks=2
    how can i do this using java. i only want to know how can i identify the text color using java code.?

    morgalr wrote:
    I guarantee it is not pretty.Indeed.
    I created a Word doc that simply has the word "Blue" in blue, then a space, then the word "Red" in red, all in the default font that Word started with (Times New Roman). The resulting document is 24,064 bytes. It starts off with 80 bytes of various hex values, mostly 0x00.Then 432 bytes of just 0xFF. Then 2048 bytes of various hex values, mostly 0x00. Then the text "Blue Red" (which appears twice more in the file). And so on...
    Edited by: jverd on May 10, 2010 8:45 AM

  • How can I make text follow a radius

    How can I make text follow a radius

    You can't do it in Pages. You will need something like Art Text.
    http://www.belightsoft.com/products/arttext/overview.php
    Walt

  • How do I make the color of my video it looks like this

    How do I make the color of my video it looks like this  
    http://www.youtube.com/watch?v=QJLylsa72zM  
    I am creating a video of extreme sports, with the effect of slow motion and I would like if I saw so

    Magic Bullet Looks is valid with final cut studio? I have understood that only serves tofinal cut pro x

  • How i can make text item as read only

    hi
    im trying to make a text item as read only so no one can write on it i tried to make it as display item but i neeed also to call lov when i double click on the text item in display item case u can not double click
    so please how i can make text item as read only
    and another thing
    how i can change an item properties by code i mean when i click in one button the text item become visibile how i can change its property by code
    thank u

    You can set a text item's property to be non-updateable
    You can change this programmatically with set_item_property()
    :)

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

  • How to set selected text color in Spark TextInput

    I'm trying to make Spark TextInputs and MXFTETextInputs look like Halo/MX TextInputs as much as possible, since I have a mix of both Spark and MX TextInputs in my application. I know I can set the
    selection background color to black using focusedTextSelectionColor. How can I set the selected text color to white so it matches the MX white-on-black look?

    This works, if you set the enabled property directly on the s:TextInput:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:layout>
            <s:VerticalLayout horizontalAlign="center" verticalAlign="middle" />
        </s:layout>
        <s:controlBarContent>
            <s:CheckBox id="ch" label="enabled" selected="true" />
        </s:controlBarContent>
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/mx";
            s|TextInput:disabled {
                color: red;
        </fx:Style>
        <s:Group>
            <s:TextInput id="ti" text="The quick brown fox jumps over the lazy dog" enabled="{ch.selected}" />
        </s:Group>
    </s:Application>
    It can get a bit trickier when you're setting the enabled property on a parent container, since (I believe) that the child control's enabled properties are still set to true and just the container is disabled. One possible workaround would be to bind the child TextInput control's enabled property to the container's enabled property. That way the s:TextInput should still go to it's disabled state and you can customize the disabled state's styles to have darker text, or whatever else you want.
    <s:Group id="gr" enabled="{ch.selected}">
        <s:TextInput id="ti" text="The quick brown fox jumps over the lazy dog" enabled="{gr.enabled}" />
    </s:Group>
    Peter

  • How can I make a color box indicator transparent?

    All, I would like to make a color box, which is part of a cluster in an array, transparent programmatically.  Instead of appearing transparent, it shows up with a LARGE "T" inside the color box, with a white background.  Because it is part of a cluster within an array, it will not work to use a property node... and because I would like to programmatically change the color, having it permanenty transparent (as proposed on another discussion topic) will also not work.  Can someone please help me turn a color box transparent programmatically?
    Thanks.
    Anthony

    The problem is that arrays of clusters cannot be passed into property nodes as falkpl has previously said. The attached jpeg shows how you would programmatically break the arrays into cluster, into elements, and then manipulate that color box to a transparent one. The T within the white color box indicates transparent though. If you were to attached that to a color attribute then you would see that object disappear (well I guess not since it's transparent )
    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager
    Attachments:
    color box.JPG ‏21 KB

  • How can i Change Text Color in table

    How can i change the text color i table, the true becoming GREEN, and the text in Fals becoming RED.
    Someone can help me to resolve this problem with a sample, because when i run the program all text becoming green in (TRUE) and than when i chang it to the (fals) all becoming Red.
    Attachments:
    Color.vi ‏38 KB

    Modifying the properties of a control in a subVI do not modify the properties of a different control in the main VI. The data is the only thing passed back from the subVI. To modify the properties of the table in the main, you need to pass a reference to it to the subVI and modify it's properties. I've attached a modified llb that does what you want.
    Attachments:
    Main_color_Table_mod.llb ‏41 KB

  • How do I make text in an ul shift left closer to the bullet?

    How can I make the text in a <ul> list shift to the left a little so that it is closer to the <li> bullet?
    I assume I should use CSS for this.

    Use CSS margins & padding.
    <style type="text/css">
    /**zero out browser default settings**/
    ul, li  {margin:0; padding:0}
    li {
    list-style:circle;
    margin-left: 50px; /**indent**/
    padding-left: 5px;  /**space between text and bullet**/
    </style>
    HTML:
    <ul>
    <li>some list item</li>
    <li>some list item</li>
    <li>some list item</li>
    </ul>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • How to change the text color to red in a combo box?

    I'm writing a java program which have a combo box which shows all the name of the member from the database. However, I would like to change the text color of those member who have now currently on-line.
    Please help, it's URGENT. Thanks in advance.
    Clark

    hi,
    as i mentioned, you would require to use a custom renderer for this, for this
    //Class subclass the JFrame and has a JList in it
    import javax.swing.*;
    import java.awt.*;
    import java.util.Vector;
    public class ListRendererTest extends JFrame
         private JList lstMenu;
         private DefaultListModel defaultListModel;
         private JScrollPane scrollPane;
         private Vector listVector;
         public ListRendererTest()
              init();
              addComponents();
              showFrame();
         public void init()
              lstMenu = new JList();
              defaultListModel= new DefaultListModel();
              lstMenu.setModel(defaultListModel);
              scrollPane      = new JScrollPane(lstMenu);
              listVector = new Vector();
              MyListData m1 = new MyListData();
              m1.setName("Rakesh");
              m1.setOnline(false);
              listVector.addElement(m1);
              m1 = new MyListData();   //represents each User instance
              m1.setName("Makesh");
              m1.setOnline(true);
              listVector.addElement(m1);
              for (int i=0;i < listVector.size(); i++)
                   defaultListModel.addElement(((MyListData)listVector.elementAt(i)));
              lstMenu.setCellRenderer(new MyListRenderer());  //set custom renderer
         public void addComponents()
              getContentPane().add(scrollPane,BorderLayout.CENTER);
         public void showFrame()
              setTitle("List renderer test");
              setSize(300,300);
              setLocation(200,200);
              setVisible(true);
         public static void main(String args[])
              new ListRendererTest();
    }The above class is the Container which houses the JList in it, it uses two other classes, MyListData which is used to represent each user instance ( username, and information about whether he is online) and MyListRenderer (custom renderer).
    // Represents each user instance //
    public class MyListData
         private String name;
         private boolean online;
         public void setName(String name)
              this.name = name;
         public String getName()
              return name;
         public void setOnline(boolean online)
              this.online = online;
         public boolean isOnline()
              return online;
    //custom list renderer
    import javax.swing.*;
    import java.awt.*;
    public class MyListRenderer extends DefaultListCellRenderer
         private MyListData myListData;
         public Component getListCellRendererComponent(JList list, Object value, int index,  boolean isSelected, boolean cellHasFocus)
               myListData = (MyListData)value;
               setText(myListData.getName());
               setBackground(myListData.isOnline() ? Color.red: Color.white);  //check if online, if so show in different color
               setForeground(isSelected ? Color.blue : Color.black);
               return this;
    }hope that helps.
    cheerz
    ynkrish

  • How to change the text color of a formLayoutColumnHeader ?

    Hi all,
    I'm working on a BSP on SAP NetWeaver 2004s and would need to change the (OTR) text color to red in a
    formLayoutColumnHeader, but there is no attribute about it. I searched for other threads and tried with the
    tag <font color=....>  before the OTR tag, but the tag is shown with the OTR text on the UI...
    Example:
        <phtmlb:formLayoutColumnHeader id   = "PublInfoGroupHeader"
                        text     = "<%= otr(xxxxxxxx) %>"  />
    Thx in advance, best regards.
    Angelo

    did you try
    text = "<font color='red'><%= otr(xxxxxxxx) %></font>"

Maybe you are looking for

  • DVD Drive Broken -Can I install from another Mac?

    Hello All A friend has a MacMini with a broken DVD Drive. He also has a MacBook, which has a working drive. He is still using Leopard and wants to upgrade to Snow Leopard. Can he upgrade the MacBook, then upgrade the MacMini using the MacBook? If so,

  • Page within a Page

    In Fireworks, how do I create a Frame that will display a login page using my current webpage as a "Frame" for the simple login page ?

  • Video freez but voice works

    when i try to video chat it works for 30 sec then the person im chating withs video freezez but audio still works great. i checked and conection says its fast. i also checked if my lap top had all requirerments and it does. I asked the other person a

  • Business one - how is the prospects for a MBA fresher

    I am very new to business one and I need some information regarding its training and prospects. One of my friend has graduated (MBA) and trying to get into SAP. Since he is fresher he is not able to undergo any major SAP module. The training center i

  • Hub 3 queries

    Although I am signed up for FON and accepted by FON my HUB3 still states "BT Fon not active on your BT Hub" ? While trying to correct the above and upgrade password my Broadband username changed  on my HUB3 and I can't change it/revert to the origina