Next question: how to dynamically enable buttons
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mighty_walrus
Posted On:   Monday, August 12, 2002 12:27 PM

Hello, people

Thank you to all who helped me on my first question. I
have a new question: can you enable disabled buttons
by just clicking into a textfield? If so, how?


Paul

Re: Next question: how to dynamically enable buttons

Posted By:   Gautam_Marwaha  
Posted On:   Monday, August 12, 2002 09:22 PM

If you want to enable/disable button when a textfield gets focus, add a focus Listener to the textfield and write code to enable/disable button in focusGained(), focusLost() methods

If you want to enable/disable button when a user types something into a textfield (which isn't the same as textfield getting focus), add a Caret Listener and provide code to enable/disable button in caretUpdate() method

About | Sitemap | Contact