MouseClicked event = enter key doesnt work

Hello,
when I make some JButoon and add to it MouseClicked event (witch handles some code) everything works fine. But when I mark it with TAB then press ENTER button wont "doClick".
So I found out that actionPerformed might be the right handler, but I dont understand why there is also mouseClicked event?
Is actionPerformed event what I need (to work either with LMB or ENTER key) ?
Are there any disatvantages of actionPerformed event comparing to mouseClicked event?

The spacebar, not the Enter key, is the default keyboard trigger for a button that has the focus (and not just in Java).
If you really want the focused button to respond to the Enter key, search this forum for"DefaultButtonFollowsFocus".
db

Similar Messages

  • My enter key doesnt work

    heyy!! my issue is abit different. Before I used to hold alt down and use the character that i needed. Now i have to let go of the key and type. Its very annoying. I have tried wipe and master reboot!! Nothing works.. Also to top it all.. my enter key doesnt work... im constantly texting and bbm'in but i cant use enter i have to use the centre button!!! im soo frustrated. my phone is out of warranty...  .. im very upset.. i used to be inlove with my phone!! its a curve 8520 

    Just plugged my wired keyboard in and it works. very strange, seems very unlikely that the only broken key is the enter key mhm. expect the unexpected. will contact the apple support on monday cause i live in germany and they dont work 24/7

  • Enter key doesnt work in url line

    enter key doesnt work in url line. only i have to pick go button with mouse

    # Click the orange Firefox button and select Add-ons to open the add-ons manager
    # In the list of extensions click on AVG Safe Search to select it, then click the Disable button
    # Restart Firefox

  • Enter key doesnt work in SQL developer

    enter key doesnt work in sql developer so cant creat new line in code.
    enter key works fine when use word etc
    Can I fix this in the SQL developer settings somewhere.?
    thanks in advance.

    Hi Sue,
    Just to let you know, your solution worked... My SQL Developer got into a state again where the backspace key stopped working... doing 'load preset, default' on the accelerators did fix it. Strange, because I don't use/configure the accelerators at all. Thanks for that, and hopefully this will be permanently fixed in the next version.
    To echo what I think someone else was trying to say... I also have the issue that sql developer will 'lock up' or get bogged down sometimes, when i'm just typing away in the worksheet. Any keystrokes I entered in though will always get entered into the worksheet, once sqldeveloper 'unfreezes' itself. Of course, this issue is an annoyance factor only (little bit of impact on productivity though), but hopefully it gets fixed as well.

  • Why my hp mini 5101 the "7" key doesnt work after upgraded the bios?

    why my hp mini 5101 the "7" key doesnt work after upgraded the bios?
    The current bios version is F.07

    korpx,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • The cap lock key doesnt work sometimes, why? 13 pro(2013, late)

    The cap lock key doesnt work sometimes, why? 13 pro(2013, late)

    Hi, BOSCO_LIN. 
    Here is a helpful article that will walk you through troubleshooting the issue with your caps lock not responding.
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    Regards,
    Jason H.

  • Showing product key doesnt work

    Hi, my name is varun, I bought my laptop (G6 pavilion 2320tx) one and a half year ago with inbuild windows 8 in it, 2 weeks earlier i refreshed my laptop. Now its showing "Activate Windows, This product key doesnt work".  What should I do......

    Try Factory Reset:
    http://support.hp.com/us-en/document/c03546603
    Else HP System Recovery should work:
    http://support.hp.com/us-en/document/c03489643
    Wish you luck,
    Karthik
    --Say "Thanks" by clicking the Kudos (purple thumbs up icon in the lower right corner of a post)
    --Please mark the post that solves your problem as "Accepted Solution"

  • L key doesnt work

    yo what up yaLL got a new bLack macbook for the hoLidays and the Lowercase L key doesnt work onLy the upper case L works i wanted to post on here to see if it was just me being an idiot and i can fix it or i need to take it to get serviced. any heLp at aLL wiLL be appreciated thank you

    so u think i shouLd take it to have it fixed. is there anyway i can get appLe to throw in some goodies for my inconvience. you wouLd think it wouL be that big of a probLem but it is reaLLy annoying. aLso how Long do u think it wouLd take them to perform this service and if i got the computer at compusa and got the extended warranty from appLe do i have to take it there or can i take it to the appLe store where i wouLd think that they wouLd be quicker

  • How do I enable the "fn  + enter" key to work as an "insert" function for windows on my mac laptop?

    how do I enable the "fn  + enter" key to work as an "insert" function for windows on my mac laptop?

    enable /disable function within the Bootcamp control panel within Windows Vista or 7

  • Can't get the Enter Key to work!

    Hi,
    I have a problem with the Enter key. I use a JDialog with TextInput and a button. I want that if you press ENTER key it will do the same as a click of the button. Here my KeyListener code:
         this.getRootPane().setDefaultButton( cmdConnecter );
         this.addKeyListener(new KeyListener() {
              public void keyPressed(KeyEvent e) {
                   if (e.getKeyCode() == KeyEvent.VK_ENTER) {
                        cmdConnecter.grabFocus();
              public void keyTyped(KeyEvent e) {
              public void keyReleased(KeyEvent e) {
                   if (e.getKeyCode() == KeyEvent.VK_ENTER) {
                        cmdConnecter.doClick();
    When I execute this code it doesn't work unless I press ctrl + Enter. I tried with other keys and it work fine.
    Thanks very much!

    Hello Crete!
    If your dialog such simple you can use one of the JOptionPane method
    to create your dialog in 1 (ie ONE!) line! These methods sets the default
    button to OK so you don't need to do anything.
    If you don't like this way you only need to set the default button.
    You do not need any event handler.
    Maybe (I am not sure) the getRootPane().setDefaultButton( cmdConnecter );
    is wrong try getContentPane().setDefaultButton( cmdConnecter );
    instead.
    Hope it helps you
    Feri

  • Enter key not working in forms 10g

    Hi guys,
    Enter key to select a form is not working
    on my application.
    I have to double click the form to open it using the mouse.
    Then if we try to exit we have to press exit that many number of times as we have pressed enter key.
    So it seems to be storing the key processes.
    We are using forms 10g.
    Please help.
    Thanks and Regards,
    Rohan

    Fixed.
    Changed KB.
    However, this is still strange as the old KB was working fine in other applications.

  • Enter key not working in Safari

    I tried aqsking this question on the Safari board but no helpful answers.
    The enter key on the full size keyboard is no longer functioning in Safari. The return key is working.
    I am using Safari 5.1.7. OS 10.6.8.
    Any suggestions on how this can be corrected. Thank you in advance.

    Very odd. Do you have another keyboard you can test with? We should isolate this to either that keyboard or the computer.

  • My E71 E-mail/Messaging key doesnt work!!

    Hey, My E71 E-mail shortcut key thing doesnt work (you know the big one with the letter on it) when i press it, it just like tries to open but doesnt and just flashes. Also when i go through menu>communication>messaging it doesnt open like that either! Please can someone help as this is a realllll paaiinnnn!!!!!

    Try this. Turn your iPad Off. Then disconnect the power going to the router for 30 seconds or longer. Then replug the power to the router (allow it to initialize) and turn On the iPad. Hopefully everything will connect. If not, see below.
    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Keyboard letters mixed up, enter key not working - early '11 MacBook Pro

    I have an early 2011 MacBook Pro. The keyboard randomly stopped functioning correctly, some keys didn't work at all and others would type in different symbols that I've never seen before. I reset the language it seems to have fixed most of the problems (5 keys weren't working but now they all are). The Enter key inserts a hyphen instead of its normal function and certain keys will still type in random letters. If I press shift and the ENTER key it now puts an underscore instead of a hyphen. The question mark slash button also puts a hyphen or an underscore, as does the original hyphen button. The  plus sign and equal sign button now puts a square bracket, etc. You get the idea. I have already reset the PRAM, but the problem still persists. Approximately how much would somethin© like this cost to ©ix (© replaced the f and ©©©© keys now). f and ©©© keys now.

    Try using a usb or wireless keyboard to verify that your built-in keyboard needs repair/replacement.
    I don't see how anyone here could give you a price for that, these are user/user help forums.  Take it to an Apple service facility.

  • Enter Key not working with Safari

    I have to use the return key for searches-the enter key is not working.
    I use Safari 5.1.7
    OS 10.6.8
    Is there I way to correct this.
    Thank you

    Obviously you are using a full wired keyboard. I am using a wireless Apple keyboard where the "Return" and "Enter" key are the same. Your keyboard is working properly as designed. You might want to take that giant chip off your shoulder if you want help in this forum.

Maybe you are looking for

  • Actual Cost for Finished Products

    Hi All, For Finished Goods calculation will use Semi finished Goods and Raw Material, while calculating the Finished Goods in cost object controlling system is picking the Standard Price Multiply Actual Quantity of semi finished goods. My Client requ

  • Popup slides under the PDF in Internet Explorer

    Hi, created a popup for a button, it opens fine in chrome , the page has a PDF file. but in IE it is sliding under the PDF when i drag to the PDF. Please let me know if have any suggestions. shanthan

  • Forcing data to be writen from buffer to datafile

    HI, Could someone help me with the following, (using oracle 11g r2) If I conduct an experiment that updates a row in a table lets say the row has a column called 'test' and I update the value of test from 'a' to 'b' I then run another update and chan

  • Error during Production Order creation

    Hi All, Our's is MTO scenario. We have maintiain Account Assigment Category as 'M' in Requirement Type. During creation on production order with ref to sales order system gives error "Account assignment cannot be carried out because of different orig

  • 1 computer, 2 I phones, and an I Pod Nano!

    Myself and husband only have 1 home PC, i currently have an I phone and I tunes account that i sync together. My partner is now looking to purchase an I phone as well, and we also have been given a new I pod nano that we wish to run a home sound syst