• Post Reply Bookmark Topic Watch Topic
  • New Topic

AbstractAction toggle state

 
vladislav peichev
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to extend AbstractAction class including toggled/untoggled state? I have a toolbar with lot of AbstractAction custom implementation and I need this to avoid serious application redesign.
Thanks in advance.
 
Campbell Ritchie
Marshal
Posts: 52580
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look for AbstractAction (it is quite difficult to find, being the very first thing in the API lists ), it already has an enabled field and setEnabled() and isEnabled() methods. That is probably what you are looking for.
 
vladislav peichev
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not a solution, I need the AbstractAction not to be disabled I need a behaviour similar to JToggleButton. There is some logic in my code which does not allow to use JToggleButton. Is it possible to simulate such behaviour?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!