#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    2
    Rep Power
    0

    How to know which textField is selected by clicking a buttun?


    Hi,
    I have 2 textFields and few buttons to do some calculations.
    I need to select a textfield to enter a value in it by clicking the button.I don't know how to figure out which textfield is selected to enter a value by clicking a button.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    2
    Rep Power
    0
    I figured out what to do. I have to use FocuseListener and FocusEvent.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    1
    Rep Power
    0

    How to know which textField is selected by clicking a buttun?


    Could anyone tell me how I would go about checking if the contents of a TextField is a numeric value?
    If there's a method in the API that does this could someone tell me the name please.
    Thank You.

IMN logo majestic logo threadwatch logo seochat tools logo