I try to run the demo from snippet 294 But it fail all the time. There the method setRegion(Region) is used on a Button object. But in the Button class isn't an method like that. What's wrong here?