disable all buttons


I have one window and few buttons on that. if i click on one button then i want to disable all the other buttons on window. how can i do that?

please help!!!



easy way: set all enabled properties of the buttons to false

smart way: define a boolean property and bind the enabled properties of the buttons to this property

And in these cases I use the displayIfNeeded() method on my UI elements and windows, so they actually reflect that state, sometimes it helps.

Model: MacBookPro8,2
Browser: Safari 534.51.22
Operating System: Mac OS X (10.7)