update button handler example to full blown Java 6