TextField  javascript: select some Text with selStart/selEnd

Hi,
I try to preselect some text content within a TextField via javaScript.
I found some documentation, which states that in the change-Event I could set the selStart and selEnd Attributes by a script.: When a change or full event occurs, if characters were selected in the field, selStart and selEnd
are set to bracket the selected characters.
I tried this, but it did not work for me.
Any Ideas on how to preselect some text in a TextField by script?
Many thanks in advance

I solved this same issue by using a switch script.
Please see my earlier thread regarding this and Paul's example will provide you with the proper scripting for a switch script.
http://forums.adobe.com/thread/479021
script on the drop down list as follows
switch (this.rawValue) {
     case "dropchoice1"
          fieldname1.rawValue = "text choice here";
          fieldname2.rawValue = "text choice here";
          break;
     case "dropchoice2"
          fieldname1.rawValue = "text choice here";
          fieldname2.rawValue = "text choice here";
          break;
Good luck.

Similar Messages

  • Javascript: select all text, break link to style

    Hi
    I'd like to select all text in a Document (in different independent textboxes) and then break the link to it's style (in the program in the Flyout-menu of the paragraph styles)
    Is this function scriptable (javascript)?
    How do I select all the text?
    InDesign CS6, OS10.7.4
    Thanks

    In fact, I use the adobe findchangebylist to modified, I want to do a clear setting script, not only break link to style, but when i run the script that will get error, can u help me to fix it, my script is shown as below:
    main();
    function main(){
    var myObject;
    //var myCheckSelection = false;
    //Make certain that user interaction (display of dialogs, etc.) is turned on.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    if(app.documents.length > 0){
      if(app.selection.length > 0){
       switch(app.selection[0].constructor.name){
        case "InsertionPoint":
        case "Character":
        case "Word":
        case "TextStyleRange":
        case "Line":
        case "Paragraph":
        case "TextColumn":
        case "TextFrame":
        case "Text":
        case "Cell":
        case "Column":
        case "Row":
        case "Table":
         myDisplayDialog();
         break;
        default:
         //Something was selected, but it wasn't a text object, so search the document.
         //myFindChangeByList(app.documents.item(0));
                        //alert("Nothing Selected, Please Select Text Frame or Text.");
      else{
       //Nothing was selected, so simply search the document.
                //myFindChangeByList(app.documents.item(0));
                alert("Nothing Selected, Please Select Text Frame or Text.");
    else{
      alert("No documents are open. Please open a document and try again.");
    function myDisplayDialog(){
    var myObject;
    var myDialog = app.dialogs.add({name:"Joan New Clear Setting_v1.0"});
    with(myDialog.dialogColumns.add()){
       with(dialogRows.add()){
       with(dialogColumns.add()){
    staticTexts.add({staticLabel:"Search Range:"});
         var mySearchButtons = radiobuttonGroups.add();
         with(mySearchButtons){
         radiobuttonControls.add({staticLabel:"Current Document", checkedState:true});
                       if(app.selection[0].contents != ""){
        radiobuttonControls.add({staticLabel:"Selection", checkedState:true});
       with(dialogColumns.add()){
        with(borderPanels.add()){
         staticTexts.add({staticLabel:"Clear Setting:"});
         var myDateButtons = radiobuttonGroups.add();
         with(myDateButtons){
         radiobuttonControls.add({staticLabel:"English", checkedState:true});
         radiobuttonControls.add({staticLabel:"Chinese"});
    var myResult = myDialog.show();
    if(myResult == true){
      switch(mySearchButtons.selectedButton){
       case 0:
                     BreakLinktoStyleDocument();
                     TurnOffHyphenationDocument();
                     myObject = app.documents.item(0);
                     myCheckSelection = false;
        break;
                  case 1:
                     BreakLinktoStyleSelection();
                     TurnOffHyphenationSelection();
                     myObject = app.selection[0];
                     myCheckSelection = true;
        break;
      switch(myDateButtons.selectedButton){
      case 0:
      myFindChangeByList1(myObject, myCheckSelection);
      break;
      case 1:
      myFindChangeByList2(myObject, myCheckSelection);
      break;
      myDialog.destroy();
      //myFindChangeByList1(myObject);
    else{
      myDialog.destroy();
    function TurnOffHyphenationDocument() {
    app.activeDocument.stories.everyItem().texts.everyItem().hyphenation=false;
    myTables = app.activeDocument.stories.everyItem().tables.everyItem();
    myTables.cells.everyItem().paragraphs.everyItem().hyphenation=false;
    function TurnOffHyphenationSelection() {
    app.selection[0].texts[0].hyphenation=false;
    app.selection[0].cells.everyItem().texts[0].hyphenation=false;
    function BreakLinktoStyleDocument() {
    app.activeDocument.stories.everyItem().texts.everyItem().applyParagraphStyle(app.activeDoc ument.paragraphStyles.item(0), false);
    app.activeDocument.stories.everyItem().texts.everyItem().applyCharacterStyle(app.activeDoc ument.characterStyles.item(0), false);
    myTables = app.activeDocument.stories.everyItem().tables.everyItem();
    myTables.cells.everyItem().paragraphs.everyItem().applyParagraphStyle( app.activeDocument.paragraphStyles.item(0), false);
    myTables.cells.everyItem().paragraphs.everyItem().applyCharacterStyle( app.activeDocument.characterStyles.item(0), false);
    function BreakLinktoStyleSelection() {
    app.selection[0].texts.everyItem().applyParagraphStyle(app.activeDocument.paragraphStyles. item(0), false);
    app.selection[0].texts.everyItem().applyCharacterStyle(app.activeDocument.characterStyles. item(0), false);
    app.selection[0].cells.everyItem().texts[0].applyParagraphStyle(app.activeDocument.paragra phStyles.item(0), false);
    app.selection[0].cells.everyItem().texts[0].applyCharacterStyle(app.activeDocument.charact erStyles.item(0), false);
    function myFindChangeByList1(myObject, myCheckSelection){
    var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, myResult;
    var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit;
    var myStartCharacter, myEndCharacter;
    var myFindChangeFile = myFindFile("/ScriptSupport/te.txt")
    if(myFindChangeFile != null){
            // Because the selection will change as we add/remove characters,
            // we'll need to reset the selection after each pass if we are
            // checking the selection. We'll get the index of the first character
            // in the selection (relative to the start of its parent story) and
            // the index of the last character in the selection (relative to the
            // *end* of the story, and we'll use them later in the script to
            // keep the ends of the selection in place.
      if(myCheckSelection == true){
       var myStart = myObject.characters.item(0).index;
       var myEnd = myObject.characters.item(-1).index;
       var myStory = myObject.parentStory;
       var myStoryEnd = myStory.characters.item(-1).index;
       myEnd = (myStoryEnd - myEnd)+1;
      myFindChangeFile = File(myFindChangeFile);
      var myResult = myFindChangeFile.open("r", undefined, undefined);
      if(myResult == true){
       //Loop through the find/change operations.
       do{
        myLine = myFindChangeFile.readln();
        //Ignore comment lines and blank lines.
        if((myLine.substring(0,4)!="text")||(myLine.substring(0,4)!="grep")||(myLine.substring(0, 5)!="glyph")){
         myFindChangeArray = myLine.split("\t");
         //The first field in the line is the findType string.
         myFindType = myFindChangeArray[0];
         //The second field in the line is the FindPreferences string.
         myFindPreferences = myFindChangeArray[1];
         //The second field in the line is the ChangePreferences string.
         myChangePreferences = myFindChangeArray[2];
         //The fourth field is the range--used only by text find/change.
         myFindChangeOptions = myFindChangeArray[3];
         switch(myFindType){
          case "text":
           myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
          case "grep":
           myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
          case "glyph":
           myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
         if(myCheckSelection == true){
          myStartCharacter = myStory.characters.item(myStart);
          myEndCharacter = myStory.characters.item(-myEnd);
          myObject = myStory.texts.itemByRange(myStartCharacter, myEndCharacter);
          app.select (myObject);
       } while(myFindChangeFile.eof == false);
       myFindChangeFile.close();
    alert("Done");
    function myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change preferences before each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    app.findChangeTextOptions = NothingEnum.nothing;
    var myString = "app.findTextPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeTextPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeTextOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
      myFoundItems = myObject.changeText();
    //Reset the find/change preferences after each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    app.findChangeTextOptions = NothingEnum.nothing;
    function myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change grep preferences before each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    app.findChangeGrepOptions = NothingEnum.nothing;
    var myString = "app.findGrepPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeGrepPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeGrepOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGrep();
    //Reset the find/change grep preferences after each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    app.findChangeGrepOptions = NothingEnum.nothing;
    function myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change glyph preferences before each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    app.findChangeGlyphOptions = NothingEnum.nothing;
    var myString = "app.findGlyphPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeGlyphPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeGlyphOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGlyph();
    //Reset the find/change glyph preferences after each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    app.findChangeGlyphOptions = NothingEnum.nothing;
    function myFindFile(myFilePath){
    var myScriptFile = myGetScriptPath();
    var myScriptFile = File(myScriptFile);
    var myScriptFolder = myScriptFile.path;
    myFilePath = myScriptFolder + myFilePath;
    if(File(myFilePath).exists == false){
      //Display a dialog.
      myFilePath = File.openDialog("Choose the file containing your find/change list");
    return myFilePath;
    function myGetScriptPath(){
    try{
      myFile = app.activeScript;
    catch(myError){
      myFile = myError.fileName;
    return myFile;
    and here is my text file, te.txt
    //001
    grep {findWhat:"."} {appliedLanguage: app.languagesWithVendors.item("English: USA"), kerningMethod: "無"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //002
    grep {findWhat:"."} {kinsokuSet: "繁體中文避頭尾(s)"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //003
    grep {findWhat:"."} {mojikumi: "nothing"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //004
    grep {findWhat:"."} {ligatures:false} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //005
    grep {findWhat:"."} {gridAlignment: 1852796517} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //006
    grep {findWhat:"."} {leadingModel: 1248619858} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //007
    grep {findWhat:"."} {characterAlignment: 1247896172} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}

  • Regarding showing of some text with one parameter.

    Hi
    I want to know that is there any funtion module by the help of which I can display some text information about one parameter. This will be displayed as the icon just after the selection field. On clicking on it the text information will be displayed.

    Here is an example of handling it manually in your program.  You still need to create the data element and the documentation of the data elment, in this example, it is ZTEST. 
    report zrich_0001.
    type-pools: icon.
    selection-screen begin of line.
    parameters: p_test type ztest.
    selection-screen pushbutton (4) help user-command help.
    selection-screen end of line.
    at selection-screen output.
      write icon_information to help.
    at selection-screen.
      case sy-ucomm.
        when 'HELP'.
          data: links type table of  tline.
          call function 'HELP_OBJECT_SHOW'
               exporting
                    dokclass = 'DE'
                    dokname  = 'ZTEST'
               tables
                    links    = links.
      endcase.
    Regards,
    Rich Heilman

  • Select some attributes with criteria api

    Hi,
    How can I specify more than one attribute here:
    query.select((Selection<? extends E>) root.get("name"));
    in other words, how can i get this query with criteria api "select name, second_name from Person" ?
    Thank you!

    Hi,
    How can I specify more than one attribute here:
    query.select((Selection<? extends E>) root.get("name"));
    in other words, how can i get this query with criteria api "select name, second_name from Person" ?
    Thank you!

  • CS3 takes 10 mins to select some text.

    OK today dreamweaver started acting crazy, as soon as I open
    a file to work on, it freaks out. To do anything (select text,
    change file, click anything) the hour glass hand pops up and it
    takes a few minutes before it registers. EVERYTIME though, its
    getting really annoying. (I think this happened to me a year ago
    and I had to delete a corrupt preferences file or something? I
    really don't remember) Does anyone have a clue whats happening?
    Thanks.

    These may help:
    http://groups.google.com/group/macromedia.dreamweaver/browse_thread/thread/9a19d57c33d3ce1 1/a29150047aaa72f8?lnk=gst&q=CS3+will+not+load#a29150047aaa72f8
    Or this technote may also help:
    How to re-create the Dreamweaver user configuration folder
    (CS3 on Windows
    XP, Vista)
    http://www.adobe.com/go/kb401118
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    CSS Tutorials for Dreamweaver |
    http://www.adobe.com/devnet/dreamweaver/css.html
    http://twitter.com/nadiap
    "john isaacks" <[email protected]> wrote in
    message
    news:gptshi$3of$[email protected]..
    > OK today dreamweaver started acting crazy, as soon as I
    open a file to work on,
    > it freaks out. To do anything (select text, change file,
    click anything) the
    > hour glass hand pops up and it takes a few minutes
    before it registers.
    > EVERYTIME though, its getting really annoying. (I think
    this happened to me a
    > year ago and I had to delete a corrupt preferences file
    or something? I really
    > don't remember) Does anyone have a clue whats happening?
    >
    > Thanks.
    >

  • Run JavaScript on event: Text Selection

    I would like a custom menu (via popUpMenuEX) to appear when a user selects some text in Acrobat Standard 9.
    To do this, I'd like to run some javascript code upon the user selecting some text. That way, the user selects text, and the popup menu automatically appears.
    I'm guessing this can be done with C++ -- is such a thing possible?

    First, we no longer support Acrobat 9.   So you should consider upgrading.
    To answer your question, yes, you can write a plugin that bridges the selection to your JavaScript.

  • How do I reliably select text or highlight text with t440s trackpad?

    It's astounding to me that you remove so many buttons that most users rely on regularly, and then don't provide any obvious instructions or tutorials on how to use all this functionality.
    So I'm trying to do something incredibly simply with buttons -- select some text to copy or paste or cut. I'm using Windows 7 on a t440s.
    Apparently the only way to do this -- unreliably -- is to hold the trackpad down (press it all the way in -- not easy to do with one finger!), and try and get the whole thing you need to select in one swoop. If you've mis-positioned your finger on the trackpad to begin the operation, though, you'll run out of space before you get to the edge of the trackpad. And then you need to start over. And keep trying to do it, until you get it.
    So now an incredibly simple action I did a dozen times a day before the t440s has become nearly impossible. The 3 times I've tried to do it so far, it's taken me a half dozen times each time. It's not gotten easier.
    Which makes me believe I'm missing something here...
    So what's the easiest way to select some text on a page, and quickly copy it?
    If I get find a simple way to do this, sadly, this laptop might be going back. I can't believe this trend to remove the trackpad buttons amongst manufacturers. If I wanted to buy a Mac, I would've bought a Mac.

    You can start by selecting a small portion of text, then release the clickpad, then hold down a Shift key and single-click at the end of the text to be selected -- the selection will expand to encompass the whole text segment ending at your last click.
    If you prefer tapping to clicking, in most apps you can start by double-tapping on a word (word gets selected) then use Shift in the same way as above, ending with a single-tap.

  • Select a text from a word/pdf document for tagging.

    Hi,
    After an overwhelming response for my [first thread|Thumbnail creation during Image Upload; , I am hoping that my second post will have a solution.
    I am currently working on a knowledge management tool using ABAP WD. The requirement is to open the existing documents and select some text and tag/categorize it.  I also found out that using flash islands, it is possible to get the selected text from textField and pass it back to the ABAP WD binded variable.
    Is there a way to display word/pdf file and perform the text tagging in WD ? using office integration ? Kind help would be greatly appreciated.

    Never mind--I figured it out.

  • I can't type text with special Spanish characters (Captivate 6)

    Hi there,
    I've just downloaded Adobe Captivate 6 to try it out and found that I can't type some special characters widely used in Spanish language: our accents or tildes (that's the Spanish word for them). That's what I can't type:
    Á or á
    É or é
    Í or í
    Ó or ó
    Ú or ú
    I've checked the fonts on my font manager, but that's not the problem. They're fine.
    I've also tried to paste some text with these characters from Firefox and it worked fine. You can see it on the image:
    So I guess it must be some annoying bug.
    Can anyone help me?
    Thanks in advance.
    Best regards,
    Iñaki

    Hi Lilybri,
    I still have this problem with the accents in AC and I've just found that problem comes from the double-type characters (like the accents in Spanish).
    http://helpx.adobe.com/captivate/kb/double-byte-characters-cannot-input.html
    BTW, I got no answer from Adobe and i'ts been more than 2 months since I registered the bug...
    Best regards!

  • How I creatat text with hyperlink in application

    hi all,
    I want to creat some text with hyperlink (it mean when I click to text, it invoke other panel or web...). My program is Application. Can any one tell me how I do it. Pls help me!!!.
    Thank you verry much

    Is this text HTML? If so, just go to any of the 350,000 sites on the Internet that describe basic HTML. Otherwise, just output the URL as text.
    However my guess is that your bigger problems are (a) how to notice the hyperlink is clicked and (b) how to invoke whatever it links to. Right?

  • How to Add Link Some Text in RichEdit Control in MFC

    I need to add some Text with Link to RichEdit, thats all.
    for example,
    my String is,
    line 1 : PASS
    line 2 :  FAIL
    line 3 : PASS
    line 4 : FAIL
    line 5 : FAIL
    now i want to add this String into RichEdit. and add a Link to Only FAIL text. when i click the FAIL Text(ie, line2,line4,line5) it show some message using Message Box or AfxMessageBox.

    I decided to give it a go and wow it was way harder than I thought it should be.  Here is what I ultimately did. (you can try playing with ITextDocument2, ITextRange2::SetURL, but I didn't get that to work like I wanted.  I finally resorted to
    directly injecting RTF into my RichEdit control.  Here is a brief example (there is a little MFC in here to save time, but the relevant stuff is pure Win32 and the MFC is trivially convertable to Win32).
    m_rich.Create(WS_VISIBLE | WS_CHILD | ES_MULTILINE, CRect(10, 10, 200, 200), this, 1000);
    // TODO: Add extra initialization here
    m_rich.SetWindowText(L"This is a test ");
    m_rich.SetSel(-1, -1);
    m_rich.SetEventMask(ENM_LINK);
    std::string dataStr = R"({\rtf1{\field{\*\fldinst{ HYPERLINK http://example.com }}{\fldrslt{DisplayText}}}}.)";
    std::list<char> dataList(dataStr.begin(), dataStr.end());
    EDITSTREAM es = {
    reinterpret_cast<DWORD_PTR>(&dataList),
    0,
    [](DWORD_PTR dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb) -> DWORD {
    auto &list = *(reinterpret_cast<std::list<char> *>(dwCookie));
    *pcb = 0;
    while (*pcb < cb && !list.empty()) {
    pbBuff[*pcb] = list.front();
    list.pop_front();
    (*pcb)++;
    return 0;
    auto r = m_rich.SendMessage(EM_STREAMIN, SF_RTF | SFF_SELECTION, reinterpret_cast<LPARAM>(&es));

  • Animate text with lines in between?

    Hi guys,
    This is my very first question on this forum. It's also the very first time I'm working with After Effects (CS6).
    Now I have the following question. Does anyone know how to animate some text with lines in between so that it sort of 'rotates'? Exactly like in the video that is shown below.
    I know that it has something to do with strokes, but I can't quite figure it out.
    Thanks for the help!

    Make the text layers layers 3D. Orient them all to the camera. Parent them to a 3D null. Rotate the null and the text will now move around as it does in your sample video.
    Leave the beam layers 2D but change the expression for the Beam Starting and Ending point to this:
    L = thisComp.layer("TextLayerName");
    L.toComp(anchorPoint);
    Change the name in quotes to match your text layer name. This needs to be different for each text layer.
    Set the Anchor Point and Position value of the layer with the beam effect to 0, 0. This is fixes an alignment problem with the beam points.
    Add this expression to the Y rotation property of your text layers:
    - thisComp.layer("Null 1").yRotation
    There you go. I told you it was more complicated. The first expression transforms the 3D space of the text layer to the 2D space of the Beam layer so that matches the position in the 2D plane of the composition. You'll have to use the baseline offset in the text palette to make horizontal adjustments in the position of the end of the beam. If you want to control both horizontal position and vertical position relative to the end of the beam you'll need to add an Anchor Point text animator. (check the help files).
    The rotation expression rotates the layer in the opposite direction of the null. This keeps the text pointing to the camera. If you want to move the camera around you'll need different expressions.

  • Extract text with specific format ?

    Hello,
    Is there a way to extract text with a specific format in a document (i.e. font type/ size or even font colour)?
    thanks in advance!

    Hello gillad,
    I am afraid only indicators are the bold font or text colour...
    Having said that, just as I was writting my response, the following idea came to me:
    Convert the pdf into word
    Click on text of interest (text with distinct format)
    Use the feature "select all text with similar formating (no data)" under "editing" within the "home" ribbon
    Having said that, hopefully a tool set/ action can be developed one day...

  • Pretagging text with ID styles without using XML tags

    I just wanna pretag some text with ID styles, such that when I place the text, it joins the layout already formatted.
    But how? Can I do this without drinking from the XML cup?
    Thx.

    Many thanks for your reply.<br /><br />When I export tagged copy (either verbose or abbreviated methods), the resulting text document is complex -- all kinds of coding. Yet, when placed back into ID, it appears correctly formatted.<br /><br />But my attempts to pretag new text with, say, <ParaStyle:New subsubcat> (one of the exported tags), brings in the tag itself, not correctly formatted new text. What to do?<br /><br />I was unable to locate the PDF document about tagged text that you referenced. My upgrades are downloads, not discs.<br />Any further suggestions on where to find the PDF document.<br /><br />Thanks again.

  • Setting the background color of the selection when text selected (input TextField)

    My input TextField has a black background. The problem is,
    when some text is enter and then selected, the selection background
    color remains black and the selected text remains white. Because of
    this it's imposible to tell that the text has been selected. Is
    there a way to change the selection background color, or do I
    really have to write a custom textfield? :(

    Yes, I do have an additional attribute called "identity" which is set to the original table where it came from. The problem is that I do not know how to check for it in my renderer. I will post my renderer code here
    public class myTableRenderer extends DefaultTableCellRenderer{
    public Component getTableCellRendererComponent( JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column) {
    final Component component = super.getTableCellRendererComponent(table, value,isSelected,hasFocus, row, column);
    if ( value != null ) {
    if ( value instanceof String ) {
    String val = value.toString();
    if ( val.compareTo("DisplayKnown") == 0 ) {
    component.setBackground(Color.CYAN);
    else
    component.setBackground(Color.LIGHT_GRAY);
    } // end if value not null
    return component;
    } // end mytablerenderer
    What happens here, is that only the column with the identity value "DisplayKnown" gets the color blue. I would like to color the whole row with that column value to be Blue.
    Does this make sense??
    Thanks,
    npatel

Maybe you are looking for

  • Error in sending mail (mail exception error)

    HI guys, I used smtp method to send mail in the java application. If i am trying through outlook it's working. but if i used in the application it's throwing this error. can anyone help me? I am using SMTP (org.springframework.mail.javamail) method t

  • Background Job, a same JOBCOUNT is assigned to multiple jobs

    Hello, When I create multiple R/3 jobs by running my program, which uses series of BAPI functions such as: BAPI_XBP_JOB_OPEN BAPI_XBP_JOB_ADD_ABAP_STEP BAPI_XBP_JOB_CLOSE the generated JOBCOUNT for each R/3 jobs are the same, that is, not unique. Is

  • Suggestion :latest post option

    it would be nice to have an option to view the latest posts since my last login in each category so you dont have to check all the categories you read. say like add one under residental products that will show all the news posts that fall under that

  • Conectar el Forms con SQL-SERVER

    Hola... Necesito informacisn de como conectar el forms con sql-server 7.0, ya que he logrado mediante sql-plus, dicha conexisn, pero el forms arroja una alerta con pura basura y no seconecta. Agradecerma cualquier uinformacisn al respecto. Gracias..

  • What happened to Watch indicators? (the binoculars)

    As of 9:30pm (US central time) they're gone from the threads I've participated in. As of 10pm they are visible again. Another hiccup? Edited by: SomeoneElse on Apr 2, 2009 9:59 PM