Button selected, but 'enter' doesn't activate, what's missing?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Button selected, but 'enter' doesn't activate, what's missing?

  1. #1
    George Guest

    Button selected, but 'enter' doesn't activate, what's missing?


    My logon screen has Logon and Cancel buttons. I can tab to the buttons and
    they are clearly selected, but "ENTER" does not activate them.
    JOptionPane buttons have this functionality and I would like to incorporate
    but don't know how - any suggestions?

    Thank you,

    George

  2. #2
    Ako Guest

    Re: Button selected, but 'enter' doesn't activate, what's missing?


    Make sure you add ActionListener to your button.

    Good Luck,

    Ako



    "George" <gkozel@allstate.com> wrote:
    >
    >My logon screen has Logon and Cancel buttons. I can tab to the buttons

    and
    >they are clearly selected, but "ENTER" does not activate them.
    >JOptionPane buttons have this functionality and I would like to incorporate
    >but don't know how - any suggestions?
    >
    >Thank you,
    >
    >George



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center