use of com.teamdev.jxbrowser.dom.event.MouseEvent in project JxBrowser-Examples by TeamDev-IP.
the class DomMouseEvents method printEventDetails.
private static void printEventDetails(Event event) {
MouseEvent mouseEvent = (MouseEvent) event;
Point location = mouseEvent.pageLocation();
String message = format("Event type: %s. Button: %s. Page location: (%d, %d)", mouseEvent.type().value(), mouseEvent.button(), location.x(), location.y());
System.out.println(message);
}
Aggregations