Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!