Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hiding button label when button is disable  RSS feed

 
Saral Saxena
Ranch Hand
Posts: 203
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to hide the label of button in swing when the button is disable..!! please advise..!!
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

set the disabled text color to that of the button's background color
or
set the text to ""
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the UX perspective this does not make sense.
Having a disabled button with the text show tells the user that he can perform this operation, but something is missing.
e.g. Disabled "Save" tells me I can save the changes, but I need to do something else first.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!