Example of mouse events utilizing Java