Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dumb GUI question

 
Aruna Raghavan
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I admit it-
I can't figure out how to gray out a TextField and a button using Swing. I don't want to use setVisible or enable/diable. Help??
Thanks,
Aruna
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is wrong with setVisible or enable/diable?
 
Aruna Raghavan
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind, it works. I didn't like SetEnabled because it wasn't changing the background color but then i realized I could set it myself to Color.gray. See, I did say it was a dumb question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic