pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Swor <sworisbreath...@gmail.com>
Subject Button.setEnabled with Action
Date Wed, 31 Oct 2012 22:55:20 GMT

I've noticed that Button.setEnabled() can sometimes throw an
IllegalArgumentException if the button has an Action associated with it.  I
understand that in such case I'm supposed to use Action.setEnabled()
instead. (btw, thank you for using meaningful exception messages!)

Can anyone please help me understand why the decision was made to throw an
exception in such a case?  Wouldn't it make life easier for an application
developer if it just forwarded the call instead?


View raw message