• Post Reply Bookmark Topic Watch Topic
  • New Topic

disabling a JButton[urgent]  RSS feed

 
netharam ram
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we disable a JButton,i.e. it should be visible,but disabled.I have a JFrame,it contains a textfield & JButton.The Button should be enabled only if the textarea is not empty.Please help me to do this,I haven't found any method in the JButton class.Reply me as soon as possible.
Happy middling with java.
Netharam
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
Your kidding of course ... how about setEnabled method.
To obvious ...
Regards,
Manfred
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!