Stop JList from jumping when Alpha key pressed.

I have a list that I have a KeyListener on. I want to trap the keypresses and handle them myself. Not a big problem, but the one thing that I cannot seem to control is that when you press the "K" key it automatically jumps to the first "K" item in the list as well as any other alphabetic key on the keyboard. I am calling evt.consume() in the keyTyped, keyPressed, & keyReleased methods, but it is still jumping. How do I turn this behavior off?
Thanks In Advance,
Jay

Replace the combo's keySelectionManager with one that never finds a match:
    comboBox.setKeySelectionManager(new JComboBox.KeySelectionManager() {
        public int selectionForKey(char c, ComboBoxModel model) {
             return -1;
   });Greetings
Jeanette

Similar Messages

  • "Search for text" Zooms when number keys pressed. Expecting it to FIND text

    For months I have been using (&relying on) the "search for text when I start typing " feature.
    I am a school teacher & this helps me to search for students & record scores in an online grading program.
    The "search for text when I start typing feature" stopped working two days ago.
    Before, whenever I typed the "Find" box immediately opened up, searched the screen,
    and highlighted whatever I had just typed. Now, when I enter a "1", "2" , "6" , "9" or "0" (zero)
    the find box does not come up- so this disrupts all the grade recording process for me.
    Instead, when I type in 6 or 9 (it zooms in the screen instead), 0 (it zooms out instead) and I cannot tell what happens
    when I type in 1 or 2 (nothing appears to happen- but no "Find" box comes up.
    Edit by a moderator to improve the title
    (As suggested by a contributor, flagging the post)
    Was
    *The Firefox "search for text when I start typing feature" has just stopped working correctly
    Now
    *"Search for text" Zooms when number keys pressed. Expecting it to FIND text
    ~J99
    I tried restarting Firefox and turning on/off the Advanced feature ( "search for text when I start typing feature")
    but it did not help. I am using a Mac. I also tried using an external keyboard/keypad but the exact same
    results occur.
    Please help!
    Thanks,
    Barry

    The keyboard shortcut for resetting the zoom level is Command+0, so seeing that kind of response implies that Firefox is misreading the state of the Command key, thinking it is stuck down. Usually tapping the key numerous times will send a signal to all programs that the key has been released (at least on Windows).
    On the other hand, in that case, Command+6 should jump to the sixth tab in the current window, it shouldn't change the zoom level. So... hmm...
    In case a component of the OS has malfunctioned, have you already tried shutting down the system completely and then starting it up again?

  • I have an Iphone 4S, when I am on the phone and I get a new message my phone vibrates and rings. How can I stop this from happening when I am on the phone

    I have an Iphone $S, when I am on the phone and I get a new message my phone vibrates and rings, How can I stop this from happneing when I am on the phone

    Flip the Ring/Silent switch. Make sure Vibrate when silent is off in Settings>Sound.

  • How do I stop photoshop from starting when I open a jpeg file?

    How do I stop photoshop from starting when I open a jpeg file?

    In windows, right click on the file, select the program that you wish to use to open the file, and be sure to check to always open this type of file with the seleted program.

  • How do I stop apps from relaunching when restarting my macbook?

    How do I stop apps from relaunching when restarting my macbook?

    Adding to the list of quitting app's before shutting down and the reopen app's options above, go to: Apple > System Preferences > Users & Groups > Login Items and remove any unwanted App's from the list that are set to open at login.

  • How do I stop iPhoto from opening when i plug in my iPhone?

    How do I stop Iphoto from opening when I plug in my Iphone?

    Having the preference in iPhoto makes perfect sense to me.  After all, iPhoto is the application that opens.  You would expect that is where you should provide some guidance not to open.
    What puzzles me much more is why you would post this comment more than 18 months after wjosten answered the original question.

  • How to stop iphone from autoplay when plug into car audio system usb?

    how to stop iphone from autoplaying when connected to your car audio USB ?

    You need to remove the association that Windows has with that particular file type. To do that, you need to open Windows Explorer. From there, click on Tools, then Folder options. Click on the tab that is named file types. You then need to find the extension for the photos that appear in the iPhone, then click that registered file type. Once you do that, there is a section to select the program to open that file type with. You can click on the change button, and that will allow you to change the program that it opens with, or restore the default. There is also a box that can be checked to always use the selected program. If you unselect it, it will prompt you next time on what program to use.
    Hope this helps.

  • Can I stop Safari from starting when connecting to a network on my iPad?

    Can I stop Safari from starting when connecting to a network on my iPad?
    On my home network the wi-fi connection happens automatically without opening Safari. But on my work network, when attempting to make a connection the iPad lets me enter my user name and password, but then tries to open the webpage www.apple.com, which is blocked by iPrism as entertainment, so I can't actually connect to that network. oes anyone know a fix for this problem?

    Can I stop Safari from starting when connecting to a network on my iPad?
    On my home network the wi-fi connection happens automatically without opening Safari. But on my work network, when attempting to make a connection the iPad lets me enter my user name and password, but then tries to open the webpage www.apple.com, which is blocked by iPrism as entertainment, so I can't actually connect to that network. oes anyone know a fix for this problem?

  • How do I stop mail from opening when I launch safari?

    Can someone please let me know if there is a way to stop mail from opening when I launch safari.
    Thanks

    You are really confused. There are several things I'd recommend, first is becoming more familiar with your computer by visiting (and bookmarking)
    Mac 101
    Find Out How Video tutorials
    Switch 101
    Next, you have 90 days of free AppleCare telephone support when you buy any new Mac. You will find the phone number in your manual or you can also click the AppleCare Contact Info if you cannot find it. However I would STRONGLY recommend carefully reading your manual. The AppleCare people will be able to help you sort out what you have done. You can also visit and Apple Store and speak to a Genius for free, just make an appointment.

  • TS4002 stop email from deletion when deleted on another device

    how to stop email from deletion when deleted on another device.

    With IMAP - the email protocol the iCloud uses - the messages live on the server and are read from there by your devices. Think of it as being like webmail and it makes sense. Therefore when your wife deletes a message she is actually deleting it from the server, which is why you see it as deleted. You can't alter this; it's inherent in the system.
    The only workaround is to sort out a method whereby emails don't get deleted until both of you have seen them - for example she could move them to another folder and you could then read them there and delete them (so their presence in that folder always means that the other person has seen them).

  • How do I stop Finder from crashing when I try to view my external drive?

    Hello,
    I've read through a few similar posts, but the solutions don't seem to fit my problem. I was moving some files around on an external drive that I've been using for a year with no problems. While moving one file to another folder (within the drive, not between my computer and the drive), it froze up. After waiting for 20 minutes or so, I pulled the drive out and restarted the computer.
    Now when I plug the drive back in, it shows up as usual, but when I click on it, Finder crashes immediately. I ran disk utility repair, and it says "The volume appears to be ok" in green, but it still crashes finder when I try to open it. Based on the advice of another post, I ran Console, and copied what I thought to be the relevant portion of the transcript, though I don't know what any of it means ("Uzak" is the name of the drive):
    12/27/13 7:02:27.778 PM fseventsd: disk logger: failed to open output file /Volumes/Uzak/.fseventsd/000000000003357c (No such file or directory). mount point /Volumes/Uzak/.fseventsd
    12/27/13 7:02:27.779 PM fseventsd: disk logger: failed to open output file /Volumes/Uzak/.fseventsd/000000000003357c (No such file or directory). mount point /Volumes/Uzak/.fseventsd
    12/27/13 7:02:27.826 PM mds: (Error) LSOF: File '/Volumes/Uzak' (fd=11) left open on device 234881033
    12/27/13 7:02:31.598 PM WDSecurityHelper: DriveDisappeared Called with a string of disk1
    12/27/13 7:04:05.000 PM kernel: USBF:          881.622          [0xffffff800a66fc00] The IOUSBFamily is having trouble enumerating a USB device that has been plugged in.  It will keep retrying.  (Port 1 of Hub at 0xfd100000)
    12/27/13 7:04:05.000 PM kernel: USBF:          881.622          [0xffffff800a66fc00] The IOUSBFamily was not able to enumerate a device.
    12/27/13 7:04:07.000 PM kernel: USBMSC Identifier (non-unique): 575844314537324E4E453037 0x1058 0x7a8 0x1033
    12/27/13 7:04:08.683 PM WDSecurityHelper: UnrecognizedDiskPeek Called with a string of disk1
    12/27/13 7:04:08.737 PM WDSecurityHelper: UnrecognizedDiskPeek Called with a string of disk1s0
    12/27/13 7:04:08.000 PM kernel: SAM Multimedia: READ or WRITE failed, SENSE_KEY = 0x05, ASC = 0x24, ASCQ = 0x00
    12/27/13 7:04:08.000 PM kernel: SAM Multimedia: READ or WRITE failed, SENSE_KEY = 0x05, ASC = 0x24, ASCQ = 0x00
    12/27/13 7:04:08.000 PM kernel: SAM Multimedia: READ or WRITE failed, SENSE_KEY = 0x05, ASC = 0x24, ASCQ = 0x00
    12/27/13 7:04:08.000 PM kernel: SAM Multimedia: READ or WRITE failed, SENSE_KEY = 0x05, ASC = 0x24, ASCQ = 0x00
    12/27/13 7:04:08.000 PM kernel: SAM Multimedia: READ or WRITE failed, SENSE_KEY = 0x05, ASC = 0x24, ASCQ = 0x00
    12/27/13 7:04:08.958 PM WDSecurityHelper: UnrecognizedDiskPeek Called with a string of disk1s0s1
    12/27/13 7:04:08.960 PM WDSecurityHelper: mountApproval Called for device disk1s0s2
    12/27/13 7:04:08.961 PM WDSecurityHelper: Approved mount devices = (
    12/27/13 7:04:08.962 PM WDSecurityHelper: The mounting of WD Unlocker on disk1s0s2 was not approved.
    12/27/13 7:04:08.969 PM WDSecurityHelper: processDiskApperance for device disk1s0s2
    12/27/13 7:04:08.999 PM WDSecurityHelper: encryptionStatus = 1
    12/27/13 7:04:09.118 PM [0x0-0x16016].com.westerndigital.WDSecurityHelper: WDDevice::PerformDriveConfiguration
    12/27/13 7:04:09.629 PM WDSecurityHelper: UnrecognizedDiskPeek Called with a string of disk2
    12/27/13 7:04:09.712 PM WDSecurityHelper: mountApproval Called for device disk2s1
    12/27/13 7:04:09.713 PM WDSecurityHelper: Approving mount of Uzak on disk2s1
    12/27/13 7:04:09.836 PM WDSecurityHelper: processDiskApperance for device disk2s1
    12/27/13 7:04:09.837 PM WDSecurityHelper: disk2s1 is not supported...
    12/27/13 7:04:09.881 PM fseventsd: could not open <</Volumes/Uzak/.fseventsd/fseventsd-uuid>> (No such file or directory)
    12/27/13 7:04:09.882 PM fseventsd: log dir: /Volumes/Uzak/.fseventsd getting new uuid: E6CE571A-E193-4549-94FC-0A76ACCEA37F
    Sorry to dump all these lines of code, but if anyone can decipher them for me I'd be extremely grateful...

    If you don't already have a current backup, back up all data before doing anything else. This procedure is a diagnostic  test. It changes nothing, for better or worse, and therefore will not, in itself, solve your problem. The backup is necessary on general principle, not because of anything suggested in this comment. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The procedure will help identify which such modifications you've installed, as well as some other aspects of the configuration that may be related to the problem.
    Don’t be alarmed by the seeming complexity of these instructions — they’re easy to carry out. Here's a brief summary: In each of two steps, you copy a line of text from this web page into a window in another application. You wait about a minute. Then you paste some other text, which will have been copied automatically, back into a reply on this page. The sequence is copy; paste; paste again. That's all there is to it. Details follow.
    You may have started the computer in "safe" mode. Preferably, these steps should be taken while booted in “normal” mode. If the system is now running in safe mode and is bootable in normal mode, reboot as usual. If it only boots in safe mode, use that.
    Below are instructions to enter UNIX shell commands. They do nothing but produce human-readable output. However, you need to think carefully before running any program at the behest of a stranger on a public message board. If you question the safety of the procedure suggested here — which you should — search this site for other discussions in which it’s been followed without any report of ill effects. If you can't satisfy yourself that these instructions are safe, don't follow them.
    The commands will line-wrap or scroll in your browser, but each one is really just a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it.
    If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. Step 1 should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click anywhere in the line of text below on this page to select it:
    PB=/usr/libexec/PlistBuddy; PR () { [[ "$o" ]] && printf '\n%s:\n\n%s\n' "$1" "$o"; }; PC () { o=$(grep [^[:blank:]] "$2"); PR "$1"; }; PF () { o=$($PB -c Print "$2" | awk -F'= ' \/$3'/{print $2}'); PR "$1"; }; PN () { [[ $o -eq 0 ]] || printf "\n%s: %s\n" "$1" $o; }; { system_profiler SPSoftwareDataType | sed '8!d;s/^ *//'; o=$(system_profiler SPDiagnosticsDataType | sed '5,6!d'); fgrep -q P <<< "$o" && o=; PR "POST"; o=$(( $(vm_stat | awk '/Pageo/{sub("\\.",""); print $2}')/256 )); [[ $o -gt 1024 ]] && printf "\nPageouts: %s MiB\n" $o; s=( $(sar -u 1 10 | sed '$!d') ); [[ ${s[4]} -lt 90 ]] && o=$( printf 'User %s%%\t\tSystem %s%%' ${s[1]} ${s[3]} ) || o=; PR "Total CPU usage"; [[ "$o" ]] && o=$(ps acrx -o comm=Process,ruid=User,%cpu | sed 's/  */:/g' | head -6 | awk -F: '{ printf "%-10s\t%s\t%s\n", $1, $2, $3 }'); PR "CPU usage by process"; o=$(kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1); PR "Loaded extrinsic kernel extensions"; o=$(launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'); PR "Loaded extrinsic user agents"; o=$(launchctl getenv DYLD_INSERT_LIBRARIES); PR "Inserted libraries"; PC "cron configuration" /e*/cron*; o=$(crontab -l | grep [^[:blank:]]); PR "User cron tasks"; PC "Global launchd configuration" /e*/lau*; PC "Per-user launchd configuration" ~/.lau*; PF "Global login items" /L*/P*/loginw* Path; PF "Per-user login items" L*/P*/*loginit* Name; PF "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed 's/\..*$//;s/-[1-9]$//'; o=$(find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l); PN "Restricted user files"; cd; o=$(find -L /S*/L*/E* {,/}L*/{A*d,Compon,Ex,In,Keyb,Mail/Bu,P*P,Qu,Scripti,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB -c 'Print :CFBundleIdentifier' "$d/Info.plist") || ID=; ID=${ID:-No bundle ID}; egrep -qv "^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|JMicron|microsoft\.MDI|print|SoftRAID" <<< $ID && printf '%s\n\t(%s)\n' "${d%/Contents}" "$ID"; done); PR "Extrinsic loadable bundles"; o=$(find /u*/{,*/}lib -type f -exec sh -c 'file -b "$1" | grep -qw shared && ! codesign -v "$1"' {} {} \; -print); PR "Unsigned shared libraries"; o=$(system_profiler SPFontsDataType | egrep "Valid: N|Duplicate: Y" | wc -l); PN "Font problems"; for d in {,/}L*/{La,Priv,Sta}*; do o=$(ls -A "$d"); PR "$d"; done; } 2> /dev/null | pbcopy; echo $'\nStep 1 done'
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    The command may take up to a few minutes to run, depending on how many files you have and the speed of the computer. Wait for the line "Step 1 done" to appear below what you entered. The output of the command will beautomatically copied to the Clipboard. All you have to do is paste into a reply to this message by pressing command-Vagain. Please don't copy anything from the Terminal window. No typing is involved in this step.
    Step 2 
    Remember that you must be logged in as an administrator for this step. Do as in Step 1 with this line:
    PR () { [[ "$o" ]] && printf '\n%s:\n\n%s\n' "$1" "$o"; }; { o=$(sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|post[fg]|x)/{print $3}'); PR "Loaded extrinsic daemons"; o=$(sudo defaults read com.apple.loginwindow LoginHook); PR "Login hook"; o=$(sudo crontab -l | grep [^[:blank:]]); PR "Root cron tasks"; o=$(syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|find tok|n Cause: -|NVDA\(|pagin|timed? ?o' | tail -n25 | awk '/:/{$4=""; print}'); PR "Log check"; } 2>&- | pbcopy; echo $'\nStep 2 done'
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    You can then quit Terminal. Please note:
    ☞ Steps 1 and 2 are all copy-and-paste — type only your login password when prompted.
    ☞ When you type your password, you won't see what you're typing.
    ☞ If you don’t have a password, set one before taking Step 2. If that’s not possible, skip the step.
    ☞ Step 2 might not produce any output, in which case the Clipboard will be empty. Step 1 will always produce something.
    ☞ The commands don't change anything, and merely running them will do neither good nor harm.
    ☞ Remember to post the output. It's already in the Clipboard. You don't have to copy it. Just paste into a reply    
    ☞ If any personal information, such as your name or email address, appears in the output of either command, anonymize it before posting. Usually that won't be necessary.
    ☞ Don't post the contents of the Terminal window.
    ☞ Don't paste the output of Step 1 into the Terminal window. Paste it into a reply.

  • How can I stop iTunes from launching when I hit the button on my head phones

    On my MBP I have some head phones that have an inline mic with call answer button. The button on the head phones is fairly sensitive and I tend to bump it on accident often. When I hit the button iTunes is launched or if I have it open it starts music.
    Is there anyway to stop this from happening? This is driving me crazy!

    This problem has been an issue for a number of months and has led to frustration and public humiliation on countless occasions.
    When disconnecting from my Bose Soundlink at home (playing nothing) in order to taking my laptop on the run I open my laptop to find that the entire contents of my iTunes playlist is being belted in public. The subway, the library, my classroom is not the time or place for my laptop to make the decision to begin playing my music without permission. When at home and my Soundlink goes on standby I have nearly had a heart attack when my laptop spontaneously begins blaring my music when I wasn't even touching the thing.
    I love my Soundlink and I love my Mac but together the devices are causing no end of aggravation with no fix in sight. With each OS update I hope the problem is addressed but to no avail, it is getting tiresome that such a flaw isn't being fixed in a timely manner.

  • Is there a way to stop Safari from jumping from tab to tab?

    I have a folder on my Bookmark Bar with 6 bookmarks that open up as tabs. These tabs contain all my banking websites, i.e. banks, credit cards, savings accounts and so on.
    I click on the folder and six tabs open up. Everything is cool, however some days some websites load faster than others so I click on the first tab that has loaded and I attempt to login. This tab maybe the 5th tab from the left for example.
    I start typing in my account and password and the first tab from the left then completes its loading and halfway into my password I jump to that tab. Royal pain in the rear.
    Also when I create a new tab type in the URL hit return, then jump back to the original tab while the new tab loads, I want to stay on the tab I am on until I am done. I don't want to jump back to new tab once its loads.
    Question: Is there anyway, any preference, any setting that I set to keep Safari from jumping around? Any way to submit this preference to Apple as an option or upgrade?
    Thanks for your replies (BTW, I am just annoyed at this but I will reward the best answer!)

    I guess you are using "Auto Click" right? Hence all tabs open at one go. I use the same thing but have never come across this even though I have "Select tabs and windows as they are created" turned on from preferences>tabs. Strange.
    I'm using Safari v3.2.1
    Dax

  • How do I stop photos from launching when I plug in camera

    Can't find anything in the preferences that will stop this new app from launching when I plug in cameras or phones.

    Plug in and let it load, then click on the camera/phone on the left hand pane and uncheck the box:
    You should also be able to do this via Image Capture (in the Applications Folder) but I haven't tested it specifically.

  • Way to stop window from resizing when zooming?

    Hi there.
    Is there a way to stop the window from resiging when zooming in/out of my Photoshop documents?
    What seems to happen to me, like, hundreds of times a day is the window keeps resizing when I zoom in and out and much of it goes behind all my palettes. So I drag the resize handle to shrink the window only to have it resize again the next time I zoom in or out.
    I couldn't find a preference for this. When I used to work in Photoshop for WIndows I could have sworn that the window never changed size unless I specifically resized it...
    Thanks!

    Son-of-a-b....
    I swear I looked there a number of times... I swear.
    Thanks.

Maybe you are looking for

  • Alpha numeric page numbers

    I would like to number pages using letters and numbers. When I put a number in for section and a letter in for sub-section, I get a message that the sub-section has to be a number. I have tried different variations with volume, chapter, section...ect

  • PDF attachment in mail

    Hi All, I am able to send the PDF file in mail attachment, but the problem is the logo is not getting displayed correctly. Pls find my code below REPORT  ztestmail. DATA: objpack LIKE sopcklsti1 OCCURS  2 WITH HEADER LINE. DATA: objhead LIKE solisti1

  • I get a "Bad Request Error 400" when trying to get to Gmail. I am running Firefox 3.6.16. No problems getting to other pages or getting to Gmail through IE (ick).

    I am running XP and Firefox 3.6.16. Problem started in middle of day, nothing else that I can point to that might have triggered it. Have restarted and that doesn't work either. Doesn't seem to have affected other sites.

  • ID and password not recognized in mountain kion

    After installing and trying to delete Os X Server, i do not have any access for anything, my ID and password do not work. I am not able to open any application or preferences. Thks for help..

  • Incoming Email deleting!

    Wow - this I have never seen before. 10.4.11 Server running email only, running perfectly for over a year, no recent changes. Suddenly one client (my own!) deletes every incoming email within seconds of its arrival. At first I though it was something