Enable JButton
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   J_R
Posted On:   Tuesday, September 4, 2001 02:18 AM

I have a JButton "replace" which i want to enable only if any one types in JTextArea textReplace
i tried
if(textReplace.getText()!=null) ;
replace.setEnabled(true);
else
replace.setEnabled(true);
but
this does not enable the button if i write something in textReplace
Which event shall i check to call the function
replce.setEnabled(true);.

About | Sitemap | Contact