Again me with a keyListener question, second alt press does not register

hey, i noticed something was off with the behavior of the application i wrote, and then i checked with the KeyEventDemo.java at http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html
and i found out that i was correct, when pressing and releasing the Alt key it registers pressed and released, but when pressed the second time only released is registered.
since the alt key behaves different then the rest of the keys, i'm sure there is a reason for it, can any one tell me why, or if can work around it??
thanks,
Adam.

I was not trying to insult you, but more to break the ice since it felt like you were "talking down" towards me,
camickr wrote:
ok, its the second time you recommend to use the key binding, So why are we wasting our time having to recommend it again? You where given the link to the tutorial the other time as well.
any good explanation as for why? a) you just found a reason
b) thats why you read the tutorial
I mean my application is a small 3d game a) what does small or large have to do with anything? The best design is the approach you should use.
b) how do we know that from the question?
Our approach is to suggest the best approach that we know. This approach may or may not be appropriate, that is why you read the tutorial and make up your own mind. Of course all Swing components use KeyBindings. Many of them like the text components or JTable will bind 20 different keys. it's not that i didn't take your advice from the first time you gave it, i read the tutorial of both keyListener and keyBinding, and browsed through the documentation of them both, but still a few things were not clear to me as to the efficiency of a wider usage of keys that's all.
and btw I have the utmost respect to you guys and what you do, and i hope we can still get along, so thank you for your help, i'll menage from here.

Similar Messages

  • WebHelp - With help window open, second application click does not bring help window back into focus

    Hello all,
    Using RH11 to create context sensitive WebHelp for use with apigee-to-go console.
    Console allows URL calls to launch help in a new browser window (named within the help project).  Works fine except that the browser help window does not regain focus when subsequent context calls are made from the application.
    Steps:
    With application running in a browser window, I click a help link.  New browser window opens with correct help topic displayed.
    Return to application without closing help window.  Application window takes focus; help window moves to back.
    I click another help link. Help window does not regain focus.  However, it DOES move to the correct topic.
    I've tried lots of things.  Nothing seems to fix this.
    For reference, my context call looks like this:
    http://<URL>/index.htm#<id=37>>wnd=HelpPopup
    Thanks for any help anyone can provide.
    Jeff Seltzer

    Thanks for the responses, but this doesn't really help.
    I'm using a simple URL to make the call.
    (That's all I can do within the web app API console I'm working with.)
    If I knew how to crack open all of the javascript that RH creates (and had that much time to work on it), I'd try to address it.
    I have to give up for now.
    I've just appended >>newwnd=false to the end of my calls, so the help appears in another browser tab, rather than its own window.
    This isn't great, since each call opens a new tab, but that's better than the help window disappearing behind the sea of open windows most of us have going on, only to cause the user to hunt for it (if they even know it's there).
    So, <URL>/index.htm#<id=37>>wnd=HelpPopup
    becomes <URL>/index.htm#<id=37>>wnd=HelpPopup>>newwnd=false
    Thanks all for your pointers.
    If I ever find the time to really work on this issue, I'll post a fix (if there is one).
    (Again, I suspect this is just buggy RH javascript.  RH knows enough to update the contents of the help/browser window, but not enough to focus it.)
    Best,
    Jeff Seltzer
    RoboHelp user since v1.1

  • When I compose an email in either gmail or yahoo, the cursor lags behind for about 2 seconds. This does not happen when I compose an email with Safari or Chrome. I am using a Mac with Firefox version 3.6.3. Any idea why this happens?

    When I compose an email in either gmail or yahoo, the cursor lags behind for about 2 seconds. This does not happen when I compose an email with Safari or Chrome. I am using a Mac with Firefox version 3.6.3. Any idea why this happens?
    == This happened ==
    Every time Firefox opened

    try
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • What do I do if wen I go to download an app it comes up with three security questions .wen I press on the third question it does not respond just turned blue n stays blue n won't let me go any further therefor not lettin me download any apps

    What do I do if wen I go to download an app it comes up with three security questions .wen I press on the third question it does not respond just turned blue n stays blue n won't let me go any further therefor not lettin me download any apps.   Thanks

    I have decided to dedicate this thread to the wonderful errors of Lion OSX. Each time I find a huge problem with Lion I will make note of it here.
    Today I discovered a new treasure of doggie poop in Lion. No Save As......
    I repeat. No Save As. In text editor I couldn't save the file with a new extension. I finally accomplished this oh so majorly difficult task (because we all know how difficult it should be to save a file with a new extension) by pressing duplicate and then saving a copy of the file with a new extension. Yet then I had to delete the first copy and send it to trash. And of course then I have to secure empty trash because if I have to do this the rest of my mac's life I will be taking up a quarter of percentage of space with duplicate files. So this is the real reason they got rid of Save As: so that it would garble up some extra GB on the ole hard disk.
    So about 20 minutes of my time were wasted while doing my homework and studying for an exam because I had to look up "how to save a file with a new extension in  mac Lion" and then wasted time sitting here and ranting on this forum until someone over at Apple wakes up from their OSX-coma.
    are you freaking kidding me Apple? I mean REALLY?!!!! who the heck designed this?!!! I want to know. I want his or her name and I want to sit down with them and have a long chat. and then I'd probably splash cold water on their face to wake them up.
    I am starting to believe that Apple is Satan.

  • Is there a keyboard shortcut to launch firefox 3.6.3 with windows vista? Hot key (ctrl + alt + key) does not work.

    The hot key (ctrl + alt + key) does not work. This is in Windows Vista.

    Thank you Morbus and Cor-el, for your prompt replies. Here's what I did: I've placed the Firefox icon in the quick launch toolbar. So I right-click this firefox icon>Properties>Shortcut tab>in Shortcut Key field, add X (the word "None" changes to "ctrl + alt + X")>Apply>Okay>and that closes the dialog window.
    Then, to try the new launch short-cut, I press and hold down, in order, ctrl, then alt, then x (holding all three down) . . . and nothing launches.
    I thought this would do it! So any further thoughts would be a splendid help ---- many thanx!

  • HT4907 I am able to connect to my Mac Mini on Back to My Mac through iCloud but the keyboard/trackpad on the MBAir or MBP with which I access does not register on the Mini.  So I can see the screen but cannot interact with it. Mini works accessing MBP/Air

    I am able to connect to my Mac Mini on Back to My Mac through iCloud but the keyboard/trackpad on the MBAir or MBP with which I access does not register on the Mini.  So I can see the screen but cannot interact with it. Mini works accessing MBP/Air and I can use Mini to input data or interact with screens of those computers.

    Regarding your first question about bookmarks, I think you discovered the answer in when you pressed the address bar. The second tab there has your bookmarks.
    As for the keyboard, I'm not sure why your Firefox is reacting so slowly; mine seems to show keyboards even when I don't want them. If you have accumulated a lot of history, perhaps that's an issue?
    Did you use any third party software to move your Firefox data from internal memory to the storage card?

  • I updated my computer to os x 10.5.8 so I can synchronize iphone with itunes.  For some reason computer does not noticed it has been updated.  Can anyone advise?

    I updated my computer to os x 10.5.8 so I can synchronize iphone with itunes.  For some reason computer does not noticed it has been updated.  Can anyone advise?

    Try what Terence Devlin posted in this topic:
    Terence Devlin
    Apr 14, 2015 11:21 AM
    Re: Is Iphoto gone ? i want it back!
    in response to Johannes666
    Recommended
    Go to the App Store and check out the Purchases List. If iPhoto is there then it will be v9.6.1
    If it is there, then drag your existing iPhoto app (not the library, just the app) to the trash
    Install the App from the App Store.
    Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • HT204365 Hi  I wonder if you could please assist me. I tried the online 'contact us" I  chose my iPad - but when I need to chose the second part - it does not give  me any options - hence I cannot go further?   My kindle does not want to open on my iPad.

    Hi
    I wonder if you could please assist me. I tried the online 'contact us" I
    chose my iPad - but when I need to chose the second part - it does not give
    me any options - hence I cannot go further?
    My kindle does not want to open on my iPad. When I touch it - a grey screen
    with kindle written in the middle appear for a few seconds. Then goes away.
    I have restarted the iPad - still the same? What else can I do?
    Thanks
    Maryna

    Judging by the reviews of the current version of the Kindle app you aren't the only one haveing problems with it - it looks like Amazon need to fix something with the app.
    Have you tried closing the Kindle app via the iPad's multitasking bar and seeing if it works when you re-open it ? Double-click the home button to open the taskbar, and then swipe or drag the Kindle app's screen from there up and off the top of the screen to close it, and click the home button to close the taskbar.
    You could also try deleting the app and redownloading it via the Purchased tab in the App Store app on it (you will then need to redownload your books in the app, assuming that it opens).

  • I have checked the warn me when closing firefox with multiple tabs open but the system does not warn me and closes all of the tabs?

    i have checked the box that says to warn me if i am closing firefox with more than one tab open but if i do close with more than one tab open it does not warn me?

    For a summary of what to do to get the old behaviour back see this post from [https://support.mozilla.com/en-US/questions/804339#answer-158823 Helper 7677]

  • HT201406 1st. Gen iPad question:  the touch keyboard does not appear when attempting to input data into data fields - this happens while using all apps, ex. Notes, Google, Pages, etc..

    1st. Gen iPad question:  the touch keyboard does not appear when attempting to input data into data fields - this happens while using all apps, ex. Notes, Google, Pages, etc.. The cursor prompt is present.  Tapping screen just brings up the option to: "Select   Select All   Paste."   I have rebbooted with no change. 
    Message was edited by: Jimfromutah
    The problem was my connected bluetooth keyboard.

    1st. Gen iPad question:  the touch keyboard does not appear when attempting to input data into data fields - this happens while using all apps, ex. Notes, Google, Pages, etc.. The cursor prompt is present.  Tapping screen just brings up the option to: "Select   Select All   Paste."   I have rebbooted with no change. 
    Message was edited by: Jimfromutah
    The problem was my connected bluetooth keyboard.

  • How can I sync iPhone 3GS with my Windows 7 PC, when iTunes does not appear on monitor screen when I plug the iPhone into the computer?

    How can I ync iPhone 3Gs with my Windows 7 PC, when iTunes does not launch when I connect the iPhone to my computer? Note: My computer crashed and I am reinstalling everything.

    Syncing to a new iTunes library or computer will erase your phone. Only if you back up your phone manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect your phone to your new computer and right click on it in the device list and choose backup. iTunes will backup your device without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPhone for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in iTunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved:iTunes: About iOS backups
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device
    You can also back up iTunes and restore it on your new computer How to back up your media in iTunes , but the iPhone will be erased anyway during the first sync.

  • Hello...I´ve just updated my Iphone 4 with 5.1.1. and my Iphone does not start at all....Nothing... Help pls

    Hello...I´ve just updated my Iphone 4 with 5.1.1. and my Iphone does not start at all....Nothing... Help pls

    Have you tried a reset by pressing and holding the sleep/wake button and the home button for 10-15 seconds until the Apple logo appears, ignore the red slider.  Then turn back on. You won't lose any data doing the reset.

  • How can I connect my 3gen apple tv with HDMI to my bush LCD32TV022HD which does not have an HDMI port but does have 1)S-Video I/P, 2)Video I/P, 3) L

    How can I connect my 3gen apple tv with HDMI to my BUSH LCD32TV022HD
    This does not have an HDMI port but does have:-
    1) S-Video I/P,
    2) Video I/P,
    3) Audio Input (Left & Right)
    4) Audio In jack (for VGA and DVI source)
    5) DVI input
    6) VGA input

    Welcome to the Apple community.
    The Apple TV doesn't officially support a DVI connection, however you may be able to get it to work. You will first need to check that your TV supports either 720p or 1080p as well as HDCP. If you are able to get the video working over the DVI connection, you may also require a DAC in order to connect with Apple TV's optical audio output to the TVs audio imput.
    You may well wish to make sure that the DVI connection works before spending any money on a DAC..

  • I dropped my iphone, it cracked (it alredy had some cracks in it) and the screen is black but sometimes has a background light.. When i plug it in to charge or to the computer it vibrates every 10 seconds and itunes does not recognize it. What can I do?

    I dropped my iphone 4 pretty hard, it cracked (although it already had a few cracks in it) and now the screen is black but sometimes has a background light turn on and then off. Holding the home button and off button at the same time do not work. When I plug it in to charge or to the computer it vibrates every 10 seconds and itunes does not seem to recognize it. It gets really really hot when plugged in (which I don't think is normal).  icloud does not recognize it under "find my iphone" either. What could the problem be? I am wondering if dropping it dislodged something inside. if so, what did I dislodge and is it possible to fix this myself?
    Thanks

    Sounds like that drop was a critical one, my friend. I would make an appointment at your nearest Apple Retail Store, because you're going to need a replacement. Also as a side note: the reason that the charger is making the phone vibrate over and over is because there is a disconnect somewhere in the charge port of the phone, causing it to plug in and out over and over.

  • When I try to install adobe photoshop 13 on my computer it comes up with the following error message " This installer does not support installation on a 64bit windows operating system" error code 6. How to I recify this? TIA

    When I try to install adobe photoshop 13 on my computer it comes up with the following error message " This installer does not support installation on a 64bit windows operating system" error code 6. How to I recify this? TIA

    You can try downloading the 64 bit version.  You can download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    Photoshop/Premiere Elements 13: http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html

Maybe you are looking for

  • Disappearing footers in PDF generated from FrameMaker 9

    Myself and three other writers are having a problem with disappearing footers in FrameMaker.  Here's the problem:  In FrameMaker, the footers display correctly.  When we convert a book to PDF, many of the footers disappear.  What we find is that a fo

  • SQL Developer 4 EA1 - External Tool Parameter Prompt With Generic Name

    I have an external tool (WinSCP - an FTP/SCP program) integrated into SQL Developer. The tool is set up as follows: Program Executable: C:\Program Files (x86)\WinSCP\WinSCP.exe Arguments: /console /command "open scp://root:${promptl:label=Password}@$

  • Does Report Builder 6i support Spatial Functions

    Does Report Builder 6i support spatial functions? I would like to use the following query in a report: SELECT id, rseq FROM gps a, user_sdo_geom_metadata m WHERE m.table_name = 'GPS' and mdsys.sdo_lrs.is_geom_segment_defined (a.geom, m.diminfo) = 'FA

  • I can preview but not render?  Black frames?

    I've taken some footage from an HDV camcorder...I did some editing in Premiere, then imported the timeline into After Effects CS3 (latest version). I had no problems when I was working on time remapping and color correction...RAM previews worked fine

  • Firewire Disk Problem 

    I have a large (500GB) hard drive that has failed. (Probably cause I packed it in luggage due to strict flight security regulations a couple of weeks ago. I have 2 questions: 1. The drive wont mount. Is there any software worth buying to try to recov