HELP! My TextField is freaking out...

Hello!
I'm creating a command-based client where i have a textfield for handling input. Now, i'm having a problem with handling TextField events (or something in that way)... I want to be able to type in commands, but i should also be able to use the numpad keys for calling some other methods that i bind to them.... now, everything works well, the methods are called when i press the numpad keys (i use a keyListener). The problem however is that after the numpad keys have been pressed and the appropriate methods have been called the keyPressed event(or whatever it is) seems to be passed on to the textfield, so the number is printed in the textfield... i dont want the number to be printed, only the method to be called... anyone got an idea? Stop the event from being forwarded or something??? (it is really nessecary for the the textfield to be in focus, since i should be able to type commands or press the numpad shortcuts at any time)... help!

keyListener). The problem however is that after the
numpad keys have been pressed and the appropriate
methods have been called the keyPressed event(or
whatever it is) seems to be passed on to the
textfield, so the number is printed in the
textfield... i dont want the number to be printed,Use setEditable(false); on the textfield to keep input from going to it.
(it is really nessecary for the the textfield to be in
focus, since i should be able to type commands or
press the numpad shortcuts at any time)... help!The component that has the focus will detect keyevents and forward them to keylisteners. If you are responding to keyevents, you MIGHT not need the textfield, just a keylistener on the components in your applet/application.

Similar Messages

  • HELP! I am FREAKING OUT about this.

    HELP! I am FREAKING OUT about this. Sorry about the caps, i composed the question elsewhere and am pasting. Please someone offer mer some help on this!
    RE: my sweet old OS 9.
    MY SYSTEM IS NOT CRASHED BUT MY MOUSE ARROW IS FROZEN. THIS OCCASSIONALLY HAPPENS, AND BELIEVE ME WHEN I TELL YOU IT IS NOT A HARDWARE (I.E., BAD WIRES, BAD USB PORT, BAD MOUSE) PROBLEM. WHEN MY MOUSE PROBLEMS OCCUR THEY TURN OUT TO BE A SOFTWARE ISSUE, FOR WHICH A QUICK REINSTALL TO ORIGINAL FACTORY SETTINGS ALWAYS FIXES. BUT I OBVIOUSLY CANNOT DO THAT THIS TIME BECAUSE SELECTING THE CORRECT REINSTALL OPTION REQUIRES USE OF THE AFOREMENTIONED FROZEN MOUSE ARROW (IT’S THE THIRD BULLET POINT DOWN THAT YOU HAVE TO CHOOSE FROM THE ROUTINE. OTHERWISE ITS JUST STUCK ON THE FIRST OPTION). OTHERWISE I’M FORCED TO USE ONLY WHAT I CALL THE WUSS REINSTALL OPTION THAT JUST SAVES ALL THINGS IN AN ORIGINAL ITEMS FOLDER, KEEPING THE BAD SOFTWARE LURKING ON THE SYSTEM, KEEPING THE ARROW FROZEN. SO, I’M SCREWED UNLESS I CAN ENTIRELY ERADICATE THE PROBLEMATIC SOFTWARE SOME OTHER WAY, WHICH I COULD DO IF ONLY I COULD EMPTY MY TRASH. SO:
    HOW DO I EMPTY OS 9 TRASH USING ONLY KEYBOARD COMMANDS?
    AND HOW DO I EVEN INSURE THAT THE LOCKED ITEMS IN THAT TRASH ALSO GET DELETED AFTER I INITIATE EMPTYING THE TRASH?

    Hi, Adam -
    To use the keyboard to empty the Trash, press Command-Shift-Delete (that's the large Delete button two rows above Return).
    Normally, to delete a locked item when emptying the Trash, one would press Option while selecting Empty Trash from the Special menu. However, adding Option to the Command-Shift-Delete combo does not seem to work (just tested it).
    If the issue is indeed software based, it should not be at play when the machine is booted to an OS Install CD. That's one of the reasons to boot to a CD - all software on the hard drive becomes nothing more than data files; none of it is in use.
    One of the main causes for such behavior when using an Apple Pro mouse is that those mouses had a defect - the wires inside the cable could fray at the point the cable leaves the mouse body, causing random open or short circuits.
    Another possible cause occurs when an optical mouse overloads the non-powered hub in the keyboard. This happened to me - it finally killed the keyboard. After replacing the keyboard I came across Apple KBase Article #58649 - Apple Pro Keyboard: Devices Connected. I reconfigured my USB connection scheme so that the mouse was plugged into the powered hub in my monitor, and have not had a similar problem since.

  • Help my keyboard is freaking out

    help my keyboard stopped working and randomly enters things when I press the letter F and the trackpad freaks out whenever i try to use it. The only thing ive don in the past day was set it on the counter while I was in the shower.

    Oops... did it get wet?

  • Help Me Please Im Freaking Out !

    Okay So i resetted my iphone, because yesturday i plugged it in to my computer and i think something happend that then it didnt let me download apps it kept saying 1013 something , and it wouldnt let me get into my apps so when today i tried to restore it and it didnt work , thats when i decided to reset it and when i resetted it it resseted but now its been like a long time and its on an apple icon, and im freaking out cause this was my present and i think i broke it please someone whoevers out there hear my plea ! Please i dont know what to do now >.<

    DId you try to jailbreak your phone? Evidently, the computer you're syncing with has been used to jailbreak, or attempt to jailbreak an iOS at some point and there is an entry in the host file that attempts to bypass Apple's authentication servers.
    Google is your friend.

  • Please help! Mail is freaking out on me!

    Mail is downloading thousands of messages into my inbox, i think it's old emails from my yahoo account (the email service i use), but normally in my in-box i have about 100 messages. they keep coming and won't stop, even when i quit mail and go back in, they keep coming. Each message seems to be coming in multiple times. Also, i am not receiving new messages. anyone know what i can do?

    And what are all those messages doing on the server? What are your Mail > Preferences > Accounts > Advanced > Remove copy from server settings? If you leave the messages on the server indefinitely, Mail may eventually end up losing track of which messages have already been downloaded, maybe as a result of some changes made at the server.
    I don’t think you’ll be able to fix this problem without moving a significant amount of messages out of the server’s inbox. You may tell Mail to remove from the server all the messages that have already been downloaded by means of Preferences > Accounts > Advanced > Remove now. Alternatively, you may use the Account Info window to remove specific messages from the server — choose Get Info (⌘I) from the Action menu (gear icon) located below the mailbox list in the main Mail window.
    If the account allows web access, however, it may be preferable to remove the messages from the server that way, or at the very least move the messages to other server-stored mailboxes if the server provides that functionality via webmail.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. That is, ~/Library is the Library folder within the user’s home folder, i.e. /Users/username/Library.

  • Help, My computer is freaking out

    OK, maybe someone here can shed some light on whats going on (please keep in mine I'm a newbie).  
    I have a KT3V ver 1.0 (ms-6712)mainboard (says it will support 333 FSB), a AMD 3000+ processor (333Mhz FSB), 512MB DDR SDRAM/PC3200, geforce 4200ti dual monitor vid card, 80 gig HD, XP pro, cd burner, DVD player etc.  
    I have several questions:
    #1 - Why doesnt my computer recongize the 3000+ processor.  While playing with settings, it shows as anywhere from  1.275 mhz to 1.725 mhz, is it running at those speeds or is it just not showing the correct info in system info?
    #2 - With this set up, I would assume that I should not have any "slow down" issues.  However I have a real problem with my music (music match) breaking up severly when opening new programs.  
    #3 - where is a good place on the net to learn more about overclocking, bios settings etc?
    Any help would be greatly Appreciated.
    Thanks
    Alan

    Quote
    Originally posted by Netherscourge
    Have you installed the most recent BIOS for you board? It should be 1.8.
    Also - you have a KT4, not a KT3.
    Once you install 1.8 (which is required for your board to recognize the 3000XP), you need to set your FSB frequency to 167 mhz.
    Save and Exit.
    You\'ll then be running at 2.18 GHZ.
    No I havent updated the Bios (I played with settings and froze it up so I've been kinda afraid to change it again)
    My board clearly says KT3V with model # ms-6712 version 10A on it, is that wrong?
    Why will I only be at 2.18 Ghz?  Will this board not handle the 3.0?
    If the board & processor says it will support 333 Mhz FSB, why isnt that an option is Bios (only goes up to 280)?
    Thanks for your help.
    Alan

  • Hi Guys,  I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out

    Hi Guys,
    I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out as this web-site has been payed for by my client.
    Alex

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Batch file rename.  I have multiple files I want to rename, that have a date in their name in the mm/dd/yy format. The slashes seem to freak out the batch rename function.  Any workarounds that would help me avoid manually changing each name?

    OS X Yosemite 10.10.2, Macbook Air,
    Finder batch file rename function. I have multiple files I want to rename, that have a date in their name in the mm/dd/yy format. The slashes seem to freak out the batch rename function and it won't work.  I took out the slashes and worked fine.  Any workarounds that would help me avoid manually changing each name?  I should point out that I want to leave most of the name intact just change the first word in each name.  Also the files I'm working with are in PDF format.

    That's a comment in the file. It has no effect at all.

  • I downloaded the Mac Guard malware today. Then downloaded Apple update to remove it. But it was compromised for like 3 hours. Do I need to cancel all my credit cards now? I'm so freaked out! Please help.

    I downloaded the Mac Guard malware this am. Then downloaded Apple update to remove it this afternoon. But it was compromised for like 3 hours. Do I need to cancel all my credit cards now? I'm so freaked out! Please help.

    If you supplied name, card number, expiry etc. then your details are already available for sale/abuse and you should cancel at once.

  • OMG freaking out please help!!  Installer won't install..Disk Utility gone?

    Newer mac user here with very little osx experience. First post on the forums really hoping you can help.
    I have a couple issues right now. First of all, lately when I try to install apps nothing happens. More specifically, when I click on the .pkg file nothing happens. The screen kind of flashes (it doesn't really flash, but I don't know how else to describe it) like it wants to do something, but then.....nothing. This has happened recently with both a divx codec I downloaded from divx.com and also with neooffice. I have tried dumping the neooffice download in the trash and redownloading and trying to reinstall and it does the same thing everytime.....nothing.
    Second....can someone tell me exactly what is supposed to be in the applications/utility folder? I thought there was a disk utility program in there that would allow me to reset permissions, but I can't find it!! I can't find it using finder either!! I am freaking out a little bit here and any help will be GREATLY appreciated.
    Thank you for your help in advance!

    Sounds like you trashed a few things from your Utilities folder. For details on restoring one or more missing pieces, see my post at:
    http://discussions.apple.com/messageview.jspa?messageID=2407797

  • Help meeeee.... iTunes is freaking out!

    ITunes keeps locking up (spinning beachball) whenever I:
    1-try to eject my nano
    2-Try to quit iTunes
    3-My finder freezes too sometimes
    I also cannot add music to my nano without it freaking out: beachball spins for an eternity. I've had tp manually shut down my computer several times. I've had to pull my iPod out when it says "do not disconnect." I tried TP2GO's solution here:
    http://discussions.apple.com/message.jspa?messageID=1239525#1239525
    But when the screen came up from booting with COMAND S held down, it kept timing out every 5 seconds and I simply did not have a chance to type in /sbin/fsck -fy as I he directed.
    Note-
    I keep my iTunes music folder on an external. Recently I noticed some songs were not being saved there, so I manually moved them and then i went into iTunes preferences and confirmed that my music was still being saved to that folder. It was....I think.
    Ever since, I've had lots of problems.
    Can anyone help????
    PowerMac G4 DP 1.42, 2 GB DDR, 120/160 GB internal HDs, 250/350 GB external HDs   Mac OS X (10.4.6)  

    Hello. Is there anyone there?

  • HELP- Audio is freaking out in export when it sounds fine/looks fine in Sequence!

    My project sounds fine while editing, but once I export, towards the end of my project the audio is freaking out in levels. It will be loud at one point and then quiet at another all in a matter of 20 seconds. I originally had mp3 tracks but I switched all to AIF so I can't seem to find the problem. Please help!

    When you swtiched audio formats did you go through compressor or just render in the timeline.
    bogiesan

  • Help!  My MacBook screen is freaking out!?

    My 2-month old refurbished MacBook's screen is freaking out. A couple of days ago while I was working on it the screen went a bit blue and the whole screen began moving up & down very very fast -- the best description I can think of is that it looks like I need to adjust the hold on a tv screen. It only did that for a few seconds then the screen returned to normal. Yesterday it did the same thing 2-3 times except the screen didn't return to normal until I put it to sleep, closed up the MacBook then re-opened. This morning when I started it up the screen is already like this and won't return to normal at all. I've tried re-starting, zapping the PRAM, but no dice. I have a jpg and a video of it doing this crazy thing if it would help to see it. Any suggestions??
    Thanks in advance.
    Kristy

    I'm not sure how to include it in the post here, but I have video & still pics of the screen. Since my original post I've had it into the Apple Store for repair 2 times (I only purchased the MacBook 4 months ago!?). The first time they replaced the display & logic board. The second time they replaced the inverter cable and display again. Each time I had no problem for a week or 10 days, then the trouble started up again. =( Any help or suggestions would be welcome.

  • I owe iTunes money I am freaking out!!!! Please help

    If I owe iTunes money can I pay it back when i can? I don't have the money right now. Im freaking out about this. And can you pay it back will an itunes card?? Please I didn t mean for this to happen it was an accident. Oh ya i live in the USA

    Yes, you can take all the time that you need. They will not do anything other than wait for you to pay. Your account will not be closed nor will it go into collections.
    You can pay it back with an iTunes card or any way you wish including prepaid credit cards.

  • My Ipod touch is freaking out!

    This just started happening about a week ago...it seems to be ok when you first turn it on, but after a few moments..it freaks out. For instance, my keyboards--with whatever app, beit email or notes or a game..I try to type a letter--it types everything BUT that letter. And none of the erase buttons work to go back. On the Music--I keep trying to go to Playlists and it keeps flipping to Artists and pursues its own songs! Sometimes I don't even have to touch the Ipod--I just get my finger near it and it picks up the button it thinks I'm trying to touch and goes to whereever! It's like its possessed! It will cut in the middle or beginning of a song and go to whatever other song. It's not on shuffle or genious or whatever...I did a full reset by holding down the two buttons, but that only temporary fixes it. I can't type anything on it because it presses its own letters uncontrollably. Please help..this is a brand new Ipod I just got for Christmas. I didn't get it wet, I've been very careful with it. I do not want a refurb! I have lots of stuff on this 32G! :((

    Basics from the manual are restart,reset, restore:
    http://manuals.info.apple.com/enUS/iPod_touch_3.1_UserGuide.pdf

Maybe you are looking for

  • Can't view pdf files in gmail (OS 5.01)

    Since I have installed OS 5.1 I can't view pdf files in my gmail account. I can view them on yahoo (same email) or with the previous OS.  I just download 5.01 a week ago so I am not sure if I missed something for settings or if I need to change somet

  • How do you verify the size of a large ( 32K) plain text body

    Hello All, I am running GW 8.0.2 Hot Patch 3, using SOAP schema 1.04. When I attempt to process a message, that contains only a plain text body with a size (in bytes) of 64,382 - the following sizes are reported by objects extracted from GroupWise, v

  • How do I change white smoke on new tab back to the thumbnails?

    There is something off with my New Tab feature instead of opening with my thumbnails, it opens to this website: www.trovi.com/?gd=&ctid=CT3326235&octid=EB_ORIGINAL_CTID&ISID=M3EB81D18-1C06-4618-A05F-EEA6AC2C6348&SearchSource=69&CUI=&SSPV=&Lay=1&UM=5&

  • Help with rollover CSS

    At http://www.bbsjazzbluessoups.com, the text links along the bottom and along the right side aren't the color I wanted. I want the 'off' state to be #0099FF. Please help me achieve this

  • Syncing Iphone 6 contacts to Vehicle Bluetooth

    I just purchased a Mercedes C300 - trying to figure out how to export my IP contacts to my vehicle phone list. I had no problems pairing  my vehicle bluetooth,  it syncs as soon as I start the engine.