• Post Reply Bookmark Topic Watch Topic
  • New Topic

Disable JButton  RSS feed

 
Lahiru Chandrarathna
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to disable JButton until all the text fields are filled with text. . . Thats OK. But then I need to disable the JButton if any of the filled text box is empty (probably,if the user remove all the text from the Text Field).
I tried the method "removeUpdate()" in DocumentListener Interface. But its not working. Please give me a solution
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> But its not working.

post what you've tried
 
Campbell Ritchie
Sheriff
Posts: 55371
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!