Multiple textboxes: Enter value in one, disable the other

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • resham
    New Member
    • Jul 2012
    • 1

    Multiple textboxes: Enter value in one, disable the other

    i have a form in which i have two text fields and i want that the user enter value in one field at a time when i implement disable property then connectivity exception occurs can i implement lock in other text box when user enter value in one text box?how i can implement this?please help...
  • PreethiGowri
    New Member
    • Oct 2012
    • 126

    #2
    you can use setEnabled() function with boolean values true or false

    Comment

    • abu sufian
      New Member
      • Apr 2011
      • 2

      #3
      you can catch a keylistener and in it setEnabled(fals e) the second textbox

      Comment

      Working...