I have a written a javafx program which can render web browser behavior in swing frame. Now I want to capture data when I click on particular link. Like I need to capture the class of the element where mouse has been placed or clicked. Looking forward for positive response. Thanks in advance.