By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,639 Members | 1,988 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,639 IT Pros & Developers. It's quick & easy.

How to set enabled my JButton...?

P: 4
My JButton will be disabled when running my program... my JButton will be enabled if the value or parameter are equal to 3...
for example: 1 value is path of the file i selected.
2 vaue is path of the directory i selected.
3 value is path of i want to be creating a output.
if this three value will complete my JButton will be going to enabled...
and i have no problem with that.

But!!!..
if i just type a words or letters let say "abcd" of the three TextField... my JButton will not be enabled what should i do to enabled my JButton even though I'm just type a words or letters...?

Any Idea...?
hope you help me.

Thanks in advance.
Oct 13 '09 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
You can add KeyListeners to textfields as well.
Oct 13 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.