This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Enable / Disable / Show / Hide ICONS  RSS feed

 
Catriona McCann
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to enable or dim an icon like you can with a button ?? If so, what method ?
Thanks
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Catriona,
since ImageIcon class does not give you any methods for doing this directly.so...
what I feel is u need to have two images one for enabled icon and another for disabled.
now whenever u need to disable the icon. remove the enabled one and add the disabled one from the container.and vice versa
this may not be the straigt and best answer.
so hope to hear from others.
regards
deekasha
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!