Pressing the button will send a 'click' event to Java:

B1 will tell Java to call 'showAlert' in the main window's javascript.

This will cause an exception to display in the Java Console.