What do I need to implement to recognize a "return" in a JTextArea?

When the user presses the return key, I wish to trigger an event, but I don't know what to implement to do that (I can't get ActionListener to work, and KeyListener covers all the keys and I just want to listen for the return key)
Thanks

myText.addKeyListener(new KeyAdaptor()
  public void keyPressed(KeyEvent e){
  //one of them works the other does not for some reason but try both..
  if(e.getChar()=='/n')   //if(e.getKeyCode()==KeyEvent.VK_ENTER)
   {//an enter was pressed..
});

Similar Messages

  • I have upgraded to a new computer.   I have installed iTunes from the internet and copied my music from the old hard drive to my new one.  What do I need to do to get my new computer to recognize my old playlist?

    I have upgraded to a new computer.   I have installed iTunes from the internet and copied my music from the old hard drive to my new one.  What do I need to do to get my new computer to recognize my old playlist?

    See https://support.mozilla.com/en-US/kb/Backing%20up%20and%20restoring%20bookmarks
    and
    https://support.mozilla.com/en-US/kb/Backing%20up%20your%20information?s=new+computer&r=4&as=s#os=win&browser=fx8

  • HT1199 I have a desktop mac operating on Mac OSx 10.4.11 and the system does not recognize my iphone and I am unable to upgrade to the newest itunes version. What do I need to do?

    I have a desktop mac operating on Mac OSx 10.4.11 and the system does not recognize my iphone and I am unable to upgrade to the newest itunes version. What do I need to do?

    Backup first
    It is always best to have a full bootable backup before you upgrade. If you fail to do this you will be unable to return to this OS if you decide you don't like the new OS. Also there is a slight chance that an install could lose everything on the Mac. The backup must be to an external hard disk. Preferably use Carbon Copy Cloner to make a bootable backup of the whole disk.
    Erase before the install
    Once you have a bootable backup on an external disk it is best to erase the internal disk with the new installer DVD before you install.
    During the install
    Preferably do not import any data or preferences from earlier OSs during the install process as this can reintroduce bugs.
    OS numbers and names
    OS X 10.4.x - Tiger
    OS X 10.5.x - Leopard
    OS X 10.6.x - Snow Leopard
    OS X 10.7.x - Lion
    OS X 10.8.x - Mountain Lion
    More about Macs
    The Apple History site has specifications for every Mac ever produced: http://www.apple-history.com/
    Upgrade to Leopard
    Those wishing to upgrade to Leopard should be aware that install disks can be expensive unless you contact Apple. Details: http://lowendmac.com/deals/best-os-x-leopard-prices.html Standard Leopard installers impose several hardware limitations including speed and RAM size but all these restrictions can be overcome. Google for details. Leopard works well at 500 MHz with 1 GB of RAM and many happy users have less than this.
    Upgrade beyond Leopard
    OSs beyond OS X 10.5.8 require an Intel processor. If in doubt check this: Click the apple at the top left of your screen and select 'About this Mac'. This will give you your OS number. Then click 'More Info' to see which processor you have. If it says PowerPC you cannot upgrade to Snow Leopard and above. If you have an Intel Mac it is well worth upgrading to Snow Leopard now and then considering other options after that. You can buy Snow Leopard here: http://store.apple.com/us/product/MC573Z/A
    Upgrade beyond Snow Leopard
    Information about upgrading Snow Leopard to Lion or Mountain Lion: http://store.apple.com/us/product/MD256Z/A
    Important
    Check that your Mac complies with any requirements. If you are not in the US you should use the Change Country link at the bottom of Apple pages.

  • What are the steps (High level) needed to implement US Payroll?

    Hi,
    What are the (high level) steps needed to implement US Payroll?
    Please provide any relavent URLs for any steps if possible.
    Thanks,
    Prabakar

    Transaction Code:-OH00
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Define employee attributes
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Define employee attributes
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Define employee attributes
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Create payroll area
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Create payroll area
    Transaction Code:-PE03
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Check Default Payroll Area
    Transaction Code:-PA03
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Create control record
    Transaction Code:-PA03
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Create control record
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayDefine EE Sub Group Grourping for PCR and Collective Agreement Provision
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayDefine Reason for Change
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayCheck PayScale Type
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayCheck PayScale Area
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayCheck Assignment of PayScale Structure to Enterprise Structure
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayDetermine Default for PayScale Data
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PaySetup Payroll Period for Collective Agreement Provision
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayDefine PayScale Salary ranges
    Transaction Code:-OH11
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Create Wage Type
    Transaction Code:-OH11
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Create Wage Type
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type Group u201CBasic Payu201D
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type CatalogCheck Wage Type Text
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type CatalogCheck Entry Permissibility Per Infotype
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type CatalogCheck Wage Type Characteristics
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type CatalogCheck Wage Type Characteristics
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Employee Sub Group Grouping for Primary Wage
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Personnel Sub Area Grouping for Primary Wage Type
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Define Wage Type Permissibility for each PS and ESG
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Define Wage Type Permissibility for each PS and ESG
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionDefine Reason for Change
    Transaction Code:-OH11
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCreate Wage Type Catalog
    Transaction Code:-OH11
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCreate Wage Type Catalog
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type Group u201C Recurring Payments and Deductionu201D
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type CatalogCheck Wage Type text
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type CatalogCheck Entry Permissibility Per Infotype
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type CatalogCheck Wage Type Characteristics
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type CatalogCheck Wage Type Characteristics
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesDefine Employee Sub Group Grouping for Primary Wage Type.
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesDefine Personnel Area Grouping for Primary Wage Type
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesDefine Wage Type Permissibility for each PS and ESG
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesDefine Wage Type Permissibility for each PS and ESG
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationaPPayroll DataAdditional Payments Define Reasons for Changes
    Transaction Code:-OH11
    Personnel Management Personnel AdministrationaPPayroll DataAdditional Payments Wage TypesCreate Wage Type Catalog
    Transaction Code:-OH11
    Personnel Management Personnel AdministrationPayroll DataAdditional Payments Wage TypesCreate Wage Type Catalog
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataAdditional Payments and DeductionWage TypesCheck Wage Type Group Additional Payments
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataAdditional Payments and DeductionWage TypesCheck Wage Type CatalogCheck Wage Type
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesCheck Wage Type CatalogCheck Entry Permissibility for Additional Payments
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesCheck Wage Type CatalogCheck Wage Type Characteristics.
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesCheck Wage Type CatalogCheck Wage Type Characteristics.
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesDefine Employee Sub Group Grouping for Primary Wage Type.
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesDefine Employee Sub Group Grouping for Primary Wage Type.
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesDefine Wage Type Permissibility for each PS and ESG
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesDefine Wage Type Permissibility for each PS and ESG
    This is not the complete once just for reference purpose i have given it to u
    Edited by: Sikindar on Nov 19, 2008 9:19 AM

  • I am trying to set up the MiFi4620L jetpack to my brother-in-laws computer, which has WIFI.  It does not recognize the jetpack.  What do I need to do?

    I recently put in a new SIMS card to our MiFi4620L Jetpack.  When I was at the Verizon Store the person who was helping me was able to sign onto the internet via the jetpack.  Now that I have my brother-in-laws computer, which has WIFI, I am unable to set up the Jetpack.  It does not recognize it.  What do I need to do to get it set up?

    If the PC cannot "See" the Jetpack then that means one of the following has happened:
    1. The wireless adapter in the PC is defective
    2. The Jetpack is defective
    3. The wireless adapter on the PC cannot see the signal coming from the Jetpack (2.4 Ghz vs. 5.0 Ghz)
    4. There are too many competing wireless signals and the PC cannot see the signal from the Jetpack
    Solving 1 and 2 is a simple matter of trial and error.  Confirm that the PC can see and connect to other networks.  Confirm that the Jetpack can connect to other PCs.  After that you need to check the specs on the Jetpack and the PC wireless card to make sure they are compatible.  If they are but the Jetpack is still not visible then that usually means the air is too crowded with competing SSIDs/Network names.  This is common in urban/apartment/dorm scenarios where multiple signals are exposed to a single machine.  The solution is either to move to an area with less competition, convert to an Ethernet cable via a wireless bridging device, or migrate to 5.0 Ghz (this jetpack only works on 2.4 Ghz).

  • HT1473 I have iTunes on my Dell Vista 64 bit and while trying to burn a book to cd it keeps telling me to insert a blank cd when I have done that already.  What do I need to do to get it to recognize a blank cd and continue with the burn?

    I have iTunes on my Dell Vista 64 bit and while trying to burn a book to cd it keeps telling me to insert a blank cd when I have done that already.  What do I need to do to get it to recognize a blank cd and continue with the burn?

    Microsoft Windows 8 x64 Home Premium Edition (Build 9200)
    Dell Inc. Inspiron 5721
    iTunes 11.1.3.8
    QuickTime not available
    FairPlay 2.5.16
    Apple Application Support 2.3.6
    iPod Updater Library 11.1f5
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 7.0.0.117
    Apple Mobile Device Driver 1.64.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 002FB7200B6E2500
    Current user is not an administrator.
    The current local date and time is 2014-01-01 16:14:14.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    **** External Plug-ins Information ****
    No external plug-ins installed.
    iPodService 11.1.3.8 (x64) is currently running.
    iTunesHelper 11.1.3.8 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** CD/DVD Drive Tests ****
    No drivers in LowerFilters.
    UpperFilters: GEARAspiWDM (2.2.3.0),
    D:   PLDS DVD+/-RW DU, Rev 
    Audio CD in drive.
    Found 15 songs on CD, playing time 55:35 on Audio CD.
    Track 1, start time 00:02:00
    Track 2, start time 03:13:47
    Track 3, start time 07:40:44
    Track 4, start time 11:32:54
    Track 5, start time 14:33:34
    Track 6, start time 18:24:06
    Track 7, start time 22:00:28
    Track 8, start time 25:36:27
    Track 9, start time 28:47:47
    Track 10, start time 32:56:24
    Track 11, start time 37:07:54
    Track 12, start time 40:11:29
    Track 13, start time 45:02:62
    Track 14, start time 48:42:65
    Track 15, start time 51:56:11
    Audio CD reading succeeded.
    Get drive speed succeeded.
    The drive CDR speeds are:   24.
    The drive CDRW speeds are:   24.
    The drive DVDR speeds are:   24.
    The drive DVDRW speeds are:   24.
    The last failed audio CD burn had error code 4310(0x000010d6). It happened on drive D:   PLDS DVD+/-RW DU on CDR media at speed 24X.

  • I have a new iPod Classic 160Gb.  i have an iTunes Account, it recognizes my device but will not sync my library of music to my new iPod.  What do I need to do?

    I have a new ipod Classic 160GB.  I already have an Itunes account.  The Itunes account recognizes my device but will not sync my library to this new device.
    What do I need to do?

    Hi Amy2250,
    Have you tried to sync music to the iPod via the iPod subdirectory of iTunes? To do this, plug your iPod into your computer, go into iTunes, click on the iPod tab, click on 'Music' in the iPod subdirectory and select whether you want to sync your whole iTunes library or just selected songs and press sync.
    Alternatively, have you tried manually transferring music onto the iPod using the 'drag and drop' method? To do that, go into iTunes with your iPod connected, click on the iPod tab, in the iTunes iPod Classic subdirectory click on the 'Summary' tab, then tick the box saying 'Manually manage music' and click save. Then, in the same subdirectory click on the 'On this iPod' tab and click on Music. Then, select the songs you want to transfer either in Finder or Windows Explorer, select the songs you want to copy to the iPod and drag them to the blank list in the 'On this iPod' area of iTunes you just opened.
    Good luck,
    stefanrandomly

  • What components do we need to implement NAP solution ?

    We use win2003R2 and win2008R2 servers , win7 laptop,win2008 DHCP, cisco 802.11x switch,Access Point, cisco acs radius server, windows CA.
    I am planing to implement NAP solution.
    What components do we need to implement NAP solution ?
    I think it needs NAP server role and third-party antivirus Win NAP compatible software.

    Hi,
    As we know, there are five NAP enforcement methods, NAP Enforcement for IPSec Communications, NAP  Enforcement for 802.1x, NAP Enforcement for DHCP, NAP Enforcement for Terminal Services Gateway, NAP Enforcement for VPN.
    Due to you have many devices in your environment, which is the primary means that you want to deploy NAP? In my point of view, you could configure NAP enforcement for DHCP or for 802.1x Wireless or for 802.1x Wired.
    To deploy DHCP NAP, we need a DC, a NPS server as RADIUS server, a DHCP server as a RADIUS clients and a DHCP client.
    To deploy NAP Enforcement for 802.1x Wireless, we need a DC, a CA, a NPS server as RADIUS server, a 802.1x wireless access point as a RADIUS client and a 802.1x wireless client.
    To deploy NAP Enforcement for 802.1x Wired, we need a DC, a CA, a NPS server as RADIUS server, a 802.1x authenticating switch as a RADIUS client and a 802.1x wired client.
    You could choose one of these NAP enforcement based on your environment. More details about NAP configuration, please refer to links below,
    Checklist: Configure NAP Enforcement for DHCP
    http://technet.microsoft.com/en-us/library/cc772356(v=ws.10).aspx
    Checklist: Configure NAP Enforcement for 802.1X Wireless
    http://technet.microsoft.com/en-us/library/cc753793(v=ws.10).aspx
    Checklist: Configure NAP Enforcement for 802.1X Wired
    http://technet.microsoft.com/en-us/library/cc730926(v=WS.10).aspx
    Best Regards,
    Tina

  • Had to reset my ipod classic now itune will not recognize it, what do i need to do?

    I had a problem with my ipod classic, stopped before songs were finished, long pauses while it ran through songs on shuffle mode, so i reset it.  I finally got it back but now my i tunes will not recognize my i pod.  What do I need to do?
    BWM

    Hello Jeanne
    If you are having issues with your iPod not showing up on your computer then check out the article below. What you need to figure out is if it does not show up at all or if it is just iTunes.
    iPod not appearing in iTunes
    http://support.apple.com/kb/TS3716
    Regards,
    -Norm G. 

  • HT1400 I purchased a new chip but my iPhone 4S will not recognize the new chip so what do I need to do?

    I purchased a new chip but my iPhone 4S will not recognize the new chip so what do I need to do?

    okay from reading posts it seems if I transfer my backed up info from my old comp to the new one and erase my dad's phone's back up i could reset my phone and it would transfer all my old data back onto the phone, be linked to the new computer and i could proceed.  Where do i find the backed up info from my phone?

  • Icannot get my pcs to see the external hard drive when I attatch it to the usb port of the airport extreme.  They do recognize a thumb drive but will not see the external hard drive.  What do I need to do.  The ext hard drive is a "MY PASSPORT" with no pw

    I need assistance getting my windows computers to see my external harddrive attached to the airport extreme.  It is a my passport.  The disk shows on the airport utilitiy but neither of my pcs can see it.  If i connect a simple thumb dirve they see it just fine.
    What do i need to do to get this to work.  There is no password on the external hard drive at the moment.  I tried removing it to see if that would work.

    There are a number of posts related to access issues between Windows Vista / 7 and AirPort Disks. Two potential solutions being forwarded are: 1) Changing the LAN Manager authentication level, and/or 2) Disabling the Windows Search feature.
     To change the LAN Manager authentication level:
    From the Windows Vista / 7 desktop, click Start
    Search for: security
    Click 'Local Security Policy'
    Goto Local Policies > Security Options
    Under Policy, double-click 'Network security: LAN Manager authentication level'
    Change level to: Send LM & NTLM responses
    Under Policy, double-click 'Network security: Minimum session security for NTLM SSP based (including RPC) clients'
    De-select 'Require 128-bit encryption'
    Click OK
     To disable Windows Search:
    Start > Control Panel > Programs > Programs & Features
    On the right-hand side, click "Turn Windows features on/off"
    Scroll down, and de-select "Windows Search".
    Press OK, close all windows and restart.
     A third "solution," that has worked for me, is verify that both the AirPort base station and the Win7 PC are using the exact same Workgroup Name. In my case, I use "WORKGROUP" (without the quote marks) for this name. From the AirPort Utility, you would enter this value on the Disks > File Sharing tab. On Win7, Start > Control Panel > System and Security > System > Change Settings > Change > Workgroup

  • IPhoto  does not recognizes formate from Kodak digital camera, what do i need to do to import photos?

    I am trying to import pohotos from a Kodak digital camara Z1275 to iphoto and I recieve a message,"unrecognized format-file cannot be imported"  What do I need to do now?  I am new to the Mac. Moving from PC to Mac.

    There is an issue with Kodaks and Macs. Use a USB Card reader.
    Regards
    TD

  • HT203433 I downloaded apps with one appleid on my iphone.  When my account was disabled I set up a new appleid & account.  Now I cannot update apps on my iphone that were downloaded with original appleid when I login with my new apple id.  What do I need

    I downloaded apps with one appleid on my iphone.  When my account was disabled I set up a new appleid & account.  Now I cannot update apps on my iphone that were downloaded with original appleid when I login with my new apple id.  What do I need to do?

    You can write into support and ask for help reenabling the account through this link here:
    http://www.apple.com/support/itunes/contact/
    Since the applications were purchased on the older account, you will need to log into that account to update them. The newer account will not recognize the purchases because they are not a part of the purchase history for the specific account.

  • My iPhone 5 is not catching up my website, although having a big screen... What does it need to get the pages in auto mobile queries converting?

    my iPhone 5 is not catching up my website, although having a big screen... What does it need to get the pages in auto mobile queries converting?

    You need to code your web site to recognize the mobile browser and send a page that's actually usable when it does.

  • I want to upgrade my hd to a 750 or 500 on my mbp what do i need to match(specs)

    im on a mid 2010, i am thinking about upgrading the hard drive(possibly later on trading it in.  But for the mean time what do i need to match? i know they have speeds, is there anything else? 2.5" as well right? how would you go about transfering your data to the new hd?  Is there any way to get itunes to recognize my new hd as my old hd(for sake of the iphone syncing)? 

    Your MacBook Pro has got a 2'5" SATA hard drive, so you can install a 750 GB hard drive without any problem. Visit the OWC website to get information about some hard drives > http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/ HGST and Seagate hard drives have good reputation, and 7200 rpm hard drives will provide you extra performance.
    After doing that, what you can do is to get a USB to SATA adapter, install the new hard drive onto your MacBook and connect the old hard drive by USB. Then, turn on your Mac and your computer will start up from your old hard drive. Use Disk Utility's Restore feature to restore your content to the new hard drive > http://pondini.org/OSX/DU7.html
    You won't have any problem with iTunes. As you will be restoring your old iTunes library, you won't lose anything from the iPhone, as it will detect that you have got the same library

Maybe you are looking for