• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dumb GUI question  RSS feed

 
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
Boost this thread!