This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes calling setEnabled throws exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "calling setEnabled throws exception" Watch "calling setEnabled throws exception" New topic
Author

calling setEnabled throws exception

Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238
Although setClickable (false) is working just fine on a button, setEnabled or setBackgroundColor is throwing an exception. What am I doing wrong here?

Thanks
Imad
Piyush Patel
Ranch Hand

Joined: Feb 24, 2009
Posts: 127

can you show us error log..
Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238
Thanks for your reply. I actually found the issue. I was trying to access my UI from licensing thread. I needed to use a handler to do that.

Thanks
Imad
 
Don't get me started about those stupid light bulbs.
 
subject: calling setEnabled throws exception
 
Similar Threads
Problem updating a window
setEnabled
Buttons...
Checkbox using Swing
radio buttons being non focusable