FIND Option in a TextArea ?

How can I implement a find Option in a Text Area ?
I want to enter a string and have it found throughout
the text.
I believe there must be ready code for sth common like
that.

Some code to get started.
   public void findWord(TextArea ta,String word) {
      String text=ta.getText();
      int start=text.indexOf(word);
      if(start==-1) { //-1 means not found
         ta.setCaretPosition(text.length()-1);
      } else {
         int end=text.indexOf(" ",start);
         if(end==-1) end=text.length(); // for last word in string
         ta.select(start,end);

Similar Messages

  • Hierarchy Node Variable search (find) option not working

    Hi Experts - I have created a hierarchy node varibale on a fixed hierarchy. When user run the report and click on hierarchy node variable selection option , A new window will pop up which has all the nodes.
    As the list is quite big and has many levels , On the same pop up , we have find option , when we enter any node in the find box , its always give a ABAP Dump , It never works for me...
    Is node find/search in not working in Bi 7.0 .
    Thanks
    R

    Hi Rohan,
    We can restrict the hierchey level at property of of the hiearchey enabled characteristic.
    Hope this hels...let me know if u require any further info on this..
    Best Regards,
    Maruthi

  • Is it possible to burn playlists in MP3 format from i tunes to an external drive such as a USB stick.  I can only find options to burn to a CD

    hi there,
    New to these forums and communites and was just trying to get feedback on this question...is it possible to burn playlists in MP3 format from i tunes to an external drive such as a USB stick.  I can only find options to burn to a CD.
    If anyone can help[ that would be great.

    Melofthesea wrote:
    hi there,
    New to these forums and communites and was just trying to get feedback on this question...is it possible to burn playlists in MP3 format from i tunes to an external drive such as a USB stick.  I can only find options to burn to a CD.
    If anyone can help[ that would be great.
    Mel,  Sure, although that is "copying," not "burning."  It is easily done, as follows:
    Insert the USB stick into your computer, and open it up so it looks like a folder.  Highlight the songs you want in iTunes, and drag them into the folder.
    If you normally run iTunes in full screen mode, make it smaller so that you can do the drag.

  • Since i install the OS X v10.7 Lion on my IMac, i can´t open the finder option or any of my folders. plis help

    Hi,
    I just finish installing the OS X v10.7 Lion on my IMac, but i can´t open the finder option or any folder (documents, download, movies, etc). I´m going crazy because i need to open my files, plis some help here.

    go to disk utility and verify and repair your disks then run software update to get up to date with 10.7.2 then see if your issue is fixed.

  • Show in Finder Option Missing from Search

    I can't figure out how to find the "Show in Finder" option after searching for a file. Is there some new secret finger gymnastics option to get this to show up? It used to be all I had to do is right-click.

    I found "Show all in Finder" after scrolling down like you said. Unfortunately, that does not show those search results in the finder, it runs a new search and shows thousands of results that I have no interest in. What I want is the "Top Hit" usually, but it becomes a needle in a haystack after clicking "Show all in Finder". With trial and error I found that if I hold down the Command key, the tail end of the file path is shown in the preview window, but not enough to find the file and it is not clickable.
    Another thing I found is that if you click on the Kind section heading, it will run a search showing all documents of that kind -- also useless since there are thousands. Unfortunately clicking on "Top Hit" does nothing. Is it possible there is another secret way to get the functionality I want that used to be there?

  • Safari 7.0.4. Couldn't find option "Safari opens with:"

    I'm using Safari 7.0.4. Couldn't find option "Safari opens with:". I want to enable all my tabs and windows to be restored where I left off when I quit Safari. I can see that option in my iMac which is running at same version level.

    It should happen automatically, unless you checked the box marked Close all windows when quitting an application in the General pane of System Preferences.

  • I couldn't find "view in finder" option in iPhoto 11.

    When i was using iPhoto 10 I could find an option of "view in finder" if I right-click on a picture. But now I bought iPhoto 11 and installed it in my MacBook Pro. But, I couldn't find "view in finder" option in iPhoto 11. Could you please help me with this?

    It's under the File Menu.
    Regards
    TD

  • Find option and variant save feature  in Value help  in VC application

    Hi,
        i want "save variant (like in R/3 you can make your variant and save it so no need to do same selection again and agian)" and find option in value help for the user friendly. can it possible in VC and if it is, then how i can do it ? reply me as soon as possible

    resolved by me

  • 5530 Xpress Music - Can not use "find" option

    Hope someone can help.  This problem started last week.  When I go to File Manager and then try to "find" a file, instead of the screen moving on to give options of which memory source I want to find a file in, it goes back to the previous screen (either the home screen or menu screen). This means I am unable to search for files on the phone.  It did resolve spontaneously for a few days but the problem has returned.  Any ideas?  I have had no problems with this until last week.

    the biggest issue ive found with the "find" option is that if you dont type in EXACTLY what something is labled it doesnt find it. so if youre looking for a file called "blue_red" and you just type "blue red" it doesnt recognize it because it not exact. i have actually given up using the find option compleatly because of this. .also there can be files on the phone that you can see when the phone is plugged into your computer using the usb that you cannot access or even see on the phone itself.

  • TS1292 i can't find options of none payment method in my account

    i can't find options of none payment method in my account

    There are two possible drivers, HP Deskjet 5550 (HPA) (HP) and HP Deskjet 5550 (HPA) (Microsoft).  Either of these should work, I think the HP one is a bit newer.  What is the nature of "not working"?  You could also use the HP Deskjet 990 driver.
    The HP Windows 7 Printer Install Wizard at http://www.hp.com/go/tools may help automatically install the proper driver.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • In sales order cross selling pop up screen requires FIND option

    Dear Friends,
    In our company we are using the pop up screen for cross selling items per BOM.
    Our requirement is in the pop up screen we require find option also. we have only copy and cancel options are there in the standard functionality.
    Could any one of you help us how can add the functionality of find option with out changing any standard code, ( i mean any OSS notes or user exits ).
    Thanks in advance,
    NLX

    Hi Joshi,
    By seeing the above link, I think after creating transaction variant we need to create Custom tcode to use that transaction variant.
    But, in this case we should use transaction VA01 only, but not any Custom Tcode..
    This is very urgent ..
    Is there any other option to meet my requirement...
    Thanks,
    Radhika

  • Managed Library - Reveal file in finder option ?

    I am using a managed library , if I want to view a file manually I am not able to locate an option which will reveal the file in finder option for me.

    pakiyabhai wrote:
    I am in fact quite happy with the option of managed library quite frankly . Saves me the hassles of individuals backups.
    I wanted the option to actually reach to those unsupported videos in my library and maybe replace them with new encoded one.
    A managed library can be a good choice.
    You should simply import the new videos, put them where you want, and tag, flag, and album them as you did the others. Then delete the unsupported version(s).
    A cardinal rule of a managed library is: DON'T TOUCH THE FILES IN THE LIBRARY with any program but Aperture.

  • Finder option not showing all the options

    Hi, the finder option in MAC shows "mobile partner" when plugged on to internet...it does not show other options like folder, documents, drives etc.  Can anyone please tell me how to access these drives and folders through finder when the internet is ON.

    Welcome to Discussions, HaylieFoxe
    HaylieFoxe wrote:
    On Flash bashed chat rooms such as Stickam and Tinychat, my camera doesn't respond but when I right click>settings >Camera the drop down box only shows one option (Built-in iSight) when it usually shows three (Built in iSight, USB Class Video and Something else that slips my mind right now.)
    Screen shot: http://i983.photobucket.com/albums/ae318/KaitheHeartless/Picture2.png
    Can anyone tell me how to fix this?
    Thanks for the help! ...
    Try the suggestions offered in this recent topic on the same subject:
      http://discussions.apple.com/message.jspa?messageID=12717402
    EZ Jim
    Mac Pro Quad Core (Early 2009) 2.93Ghz Mac OS X (10.6.6); MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.6)
    LED Cinema Display; G4 PowerBook 1.67GHz (10.4.11); iBookSE 366MHz (10.3.9); External iSight; iPod4touch4.2.1

  • Can'n find option local aggregation in InfoSet

    Hello!
    I use BI 7.0.
    My problem is that I cant find option "local aggregation" in editing mode of InfoSet.
    This option is described here http://help.sap.com/saphelp_nw70/helpdata/en/43/de444c23a46194e10000000a1553f7/content.htm
    but in glolbal properties of InfoSet I have only 3 options:
    1) join is time-dependent;
    2) most recent reporting for InfoObjects;
    3) left outer: add filter value to on-condition.
    Best Regards,
    Antoshkin Vitaly.

    Does anybody know what happen? SAP program always set this field invisible in InfoSet 's global properties.
    Best Regards,
    Antoshkin Vitaly.

  • Find option is greyed out in Administrator ? How do I enable it ?

    I have a number of business areas and I'd like to search to see whether a folder item exists, and if so, where. Unfortunately, although there is a Find option on the Edit menu, it is continually greyed out, obviously meaning I can't use it.
    Does anyone know why its there and what its use is, and in what circumstances I can use it ?
    I guess I could get the same info by running an EUL report with a filter, but that's a bit long-winded for a simple Find operation.
    Any help would be appreciated.
    Thanks,
    John

    Hi john,
    Does anyone know why its there and what its use is, and in what circumstances I can use it ?Its use to search the folders in the Business areas.
    Which version of discoverer are you using?
    The graying out of the icons might be due to the cache memory of java.go through this link for details
    [http://learndiscoverer.blogspot.com/2006/06/lost-or-grayed-out-icons-in-discoverer.html]
    hope it helps you.
    Best Wishes,
    Kranthi.

Maybe you are looking for