• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. SWT Buttons > Enabling and Disabling Buttons

6.13. Enabling and Disabling Buttons

It is often useful to "disable" a button when it is not appropriate for the user to initiate the action to be taken upon a button click, or when the option represented by a check or radio button is not available. In fact, users expect this behavior. It is disconcerting for the user to click an enabled button, only to have no action take place. To prevent discomforting your users, you must enable and disable buttons depending upon program conditions.

6.13.1. How do I do that?

A button is disabled by:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint