Stockwatcher has a few inner classes because there aren't many buttons. If you have a lot of buttons, write a single clickHandler that has a switch based upon the source of the click. * The analogy is direct for other event handlers. Beware of the need for a hard reload of a web page. If that doesn't work, you may want to clear the cache.