Making a textfield do something with the string when enter is pushed

I want this textfield to be able to do something when I hit the enter how is this done, is there a method in the textfield that can so this or will I have to set up a keylistener?

If you want done something after the validation. Use the addActionListener method.
JHelp

Similar Messages

  • How to do something with the moved file ???

    I bet it is easy, but as I am new to AppleScript, still need help..
    This is a folder action. When a new file is added to the folder, the folder action script runs, and if the file name contains a particular text, then the file is moved to another folder - in this case, it is moved to a folder on an external hard drive. It is described in this script:
    copy name of thisItem as string to FileName
    if FileName contains "House" then
    move thisItem to POSIX file "/Volumes/ALL/House/Season 5/"
    The problem is - in that folder (/Volumes/ALL/House/Season 5/) I also have set a folder action, that, for example, converts or opens every file added to folder. The things is that, it is rather slow to run 2 folder actions and I don't know why it is so, but I guess it is because of the external hard drive. My aim is to remove the folder action for the folder (/Volumes/ALL/House/Season 5/), and do everything in the initial folder action.
    So the question is - How can I operate with (for example, convert or open the newly added file) the file added in the folder (/Volumes/ALL/House/Season 5/) via the first folder action script?
    Or in other words, how do I use the newly added file? I tried to do it like this:
    copy name of thisItem as string to FileName
    if FileName contains "House" then
    move thisItem to POSIX file "/Volumes/ALL/House/Season 5/"
    open thisItem
    But obviously, it opens the original thisItem! So how can I do something with the newly added file in the location /Volumes/ALL/House/Season 5/ ???
    Cheers and sorry for my english!
    Message was edited by: reinisb

    But obviously, it opens the original thisItem! So how can I do something with the newly added file in the location /Volumes/ALL/House/Season 5/ ???
    That's easy - you know the file name and you know the directory you copied the file to, so instead of:
    open thisItem
    you just:
    open POSIX file "/Volumes/ALL/House/Season\ 5/" & FileName

  • TS3694 hey everyone.. i have a problem with my 3Gs iphone.. i updated to the ios5 and now when i open it says that i have to connect it with the itunes. when i connect it says that has an error 28 something like that.. can anyone help me to fix it?? Regar

    hey everyone.. i have a problem with my 3Gs iphone.. i updated to the ios5 and now when i open it says that i have to connect it with the itunes. when i connect it says that has an error 28 something like that.. can anyone help me to fix it?? Regards

    Error 23, 28, 29: These errors may indicate a hardware issue with your device. Follow the steps in this article. Also attempt to restore while connected with the white USB Dock Connector cable that shipped with your device, on a known good computer and network to isolate this issue to the device. The MAC address being missing or the IMEI being the default value, (00 499901 064000 0), can also confirm a hardware issue. Out-of-date or incorrectly configured security software can also cause these errors.

  • Not rally a question, just wanted to share my absolute frustration with the update of iTunes...this is, without a shadow of a doubt THE WORST application i have EVER used, Mac or PC! And that's saying something with the amount of PC dross that's out there

    Not rally a question, just wanted to share my absolute frustration with the update of iTunes...this is, without a shadow of a doubt THE WORST application i have EVER used, Mac or PC! And that's saying something with the amount of PC dross that's out there...Apple...PLEASE update and give us back the old version of iTunes...

    Pull down View > Show Sidebar. This will give you back the same functionality of iTunes 10.x.x.

  • Hi, i have a macbook air and i've been having problems with the camera when i'm using skype. i know im no the 1st one and i'd like to know when apple or someone 'll do something about this.

    hi, i have a macbook air and i've been having problems with the camera when i'm using skype. i know im no the 1st one and i'd like to know when apple or someone 'll do something about this.

    Try reinstalling Combo Update.
    http://support.apple.com/kb/DL1676
    Best.

  • So I recently removed my partition so I can repartition but its telling me to do something with the disk utility I don't understand what I'm suppose to do?

    So I recently removed my partition so I can repartition but its telling me to do something with the disk utility I don't understand what I'm suppose to do?

    GCapinpin wrote:
    So I recently removed my partition so I can repartition but its telling me to do something with the disk utility I don't understand what I'm suppose to do?
    Unless you tell us what it is telling you we can't help.

  • HT2463 Since I installed my new d6300 netgear my downloads on Apple TV have taken a lot longer than previously using a billion router.  Do I need to do something with the net gear set up?

    Since I installed my new d6300 netgear my downloads on Apple TV have taken a lot longer than previously using a billion router.  Do I need to do something with the net gear set up?

    Just connect the new iPod to your computer and setup the iPod via iTunes (instead of via wifi).
    If you want to copy all the infor from an old iPod touch to the inew iPod see:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • If it is possible a scripting can making contents of a book with the correct page numbers?

    I was wondering if it is possible a scripting can making contents of a book with the correct page numbers.
    I know indesign has already a function that can making contents in a same file, as long as some paragraph styles were indicated to make the contents.
    But if the title on the master page, it doesn’t work.
    If it is possible to make it happen on a whole book, in spite of what I choosing title was on the master page?
    Can somebody help me?
    Thanks!

    I work on one book which has 40 topic that follow immediately, each topic has a title, socalled section headed. They were put on the master page. What I want is the section headed and the each topic's starting number to make a contents.
    Each time, I work on this kind of book, I have to copy them 40 times to make a contents page, and I have to writing down the each section's starting page number and then type in the contents.
    I was wondering if it is a function can help me and let me easily to make a contents.
    can somebody help me
    thanks!

  • Whenever I try to erace something with the delete button it acts like "tab" and sends me all over the page when all I want to do is erace what I wrote... help!

    Whenever I try to erace something with the delete button it acts like "tab" and sends me all over the page when all I want to do is erace what I wrote...How do I fix this?

    Whenever I try to erace something with the delete button it acts like "tab" and sends me all over the page when all I want to do is erace what I wrote...How do I fix this?

  • The latest iMovie do not seem to be working properly.  the photos and videos become distorted whenever i attach them to the templates.  in one case (Blockbuster Trailer), the video skips thereby making it not in-synch with the music.  what should i do?

    the latest iMovie do not seem to work properly.  the photos and videos become distorted when i attach them to the templates.  in one case (Blockbuster Trailer), the video skips thereby making it not in synch with the music. what should i do?

    bnjr86 wrote:  There have been times when I've walked in there, that I really don't want to deal with VZW anymore and just take my business elsewhere.
    I  wonder if another provider would really be much different?  Read some of the other carrier forums - seems to be the same story everywhere.
    I'm not disagreeing with you - I've found that I am usually more informed about Verizon policies and procedures than some of the reps in our local store.

  • Everything on my screen, Mac Pro, shrunk!  Gmail, bookmark pane, task bar menu, even the password sign in. I'm sure I did something with the fingers thing. How do I get back to defaule

    Everything on my screen, Mac Pro, shrunk!  Gmail, bookmark pane, task bar menu, even the password sign in. I'm sure I did something with the fingers thing. How do I get back to default.  The font is tiny, tiny.  My operationg system is Mavericks.

    Thank you for the list, I will print and keep it handy.
    Contol F3 makes my whole screen larager or smaller. 
    Command option 8 does nothing that I can see.
    Command  option + or -  will zoom in or out on the page I am on but if I change windows it reverts.
    But bookmarks pane, the task bar, the password sign in and even the post I am writing (actually every printed word), are a font so small I almsost need a magnifiying glass.  This includes web pages too!
    I am using Mavericks. 
    Trying to retrace my steps when this happened.  Nothing unusual, I was using airplay to watch a You Tube segment on the tv.  I don't think that is related.
    I really appreciate your help and comments on this.  I can usualy google and find and answer, but to no avail with this one!

  • When using Safari I am unable to scroll with the trackpad when on a PDF browser plugin page.

    I can't scroll with the trackpad when I have a PDF open in Safari, I have to go use the scrollbar. Is there a way to fix this?

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print PDF's displayed in Safari, you may be able to print by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar may appear under the cursor. Click the printer icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
    Safari ▹ Preferences... ▹ Security
    and check the box marked
    Allow Plug-ins
    Then click
    Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens by pressing command-V, then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others—I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

  • I have an iPod nano v4 or 5 and when I connect it to my Hyundai Santa Fe I get an iPod loading error message.  The cable came with the car when I purchased it and the dealer was able to get it to work with his newer ipod.  Please advise.

    I have an iPod Nano v4 or 5 and when I connect it to my Hyundai Santa Fe I get an iPod Loading error message.  The cable works with the dealer's iPod which is a newer model.  The cable came with the car when I purchased it.  Please advise.  Thanks.

    Hi Bander Bunny!
    I have a couple of articles that should be able to help you troubleshoot this issue a little further. You may want to try uninstalling and reinstalling iTunes first. This has to be done in a specific manner, and this article can help you do that:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/ht1923
    Another option is that you may want to try syncing your iPod nano manually. Here's is an article that pertains to manually managing the content of your iPod nano:
    Managing content manually on iPhone, iPad, and iPod
    http://support.apple.com/kb/ht1535
    It's also possible that this issue resides with your iPod nano. Here is a website that will help you troubleshoot the iPod nano:
    Apple - Support - iPod Troubleshooting Assistants
    http://www.apple.com/support/ipod/five_rs/
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • I am getting the error message "cannot communicate with the server" when i try to sign into my apple account on my ipad - any ideas???

    i am getting the error message "cannot communicate with the server" when i try to sign into my apple account on my ipad - any ideas???

    Welcome to the Apple Community.
    The following article(s) may help you.
    Photo Stream ToU's

  • I had to delete everything on my computer and install the operating system again , but I had to install Snow Leopard because it was the cd that came with the computer when I bought it. The problem is that I had already paid for the OS Lion and even h

    I had to delete everything on my computer and install the operating system again , but I had to install Snow Leopard because it was the cd that came with the computer when I bought it. The problem is that I had already paid for the OS Lion and even had upgraded to the Mavericks . I do not think it's fair to have to pay again and I would like to upgrade my operating system without having to pay again for the same system.

    Hi anatuta, 
    Thanks for visiting Apple Support Communities. 
    It sounds like you are trying to upgrade your Mac to a newer version of OS X, after completing a fresh install of Snow Leopard. 
    If you have already purchased and downloaded OS X Lion and Mavericks, you should be able to find these items in the Purchased section of the Mac App Store. 
    You may find the steps in this article helpful with finding the items:
    Mac App Store: Finding your purchased apps - Apple Support
    If you do not see the items in the Purchased section, they may be hidden:
    Hide and unhide purchases in the Mac App Store - Apple Support
    All the best,
    Jeremy 

Maybe you are looking for