You can obtain the list of visited pages by using the WebHistory class. It represents a session history associated with a WebEngine object. Use the WebEngine.getHistory() method to get the WebHistory instance for a particular web engine, as shown in the following line: WebHistory history = webEngine.getHistory();.
The history is basically a list of entries. Each entry represents a visited page and it provides access to relevant page info, such as URL, title, and the date the page was last visited. The list can be obtained by using the getEntries() method.
The history list changes as users navigate through the web. Use the ObservableList API to process the changes.
You typically use a standard or custom UI control to display the history list. Example 10 shows how to obtain a history items and present them in the ComboBox control.