The ListChangeListener object tracks the changes of history entries and adds the corresponding URLs to the combo box.
When users select any item in the combo box, the web engine is navigated to the URL defined by the history entry item, which position in the list is defined by the offset value. A negative offset value specifies the position preceding the current entry, and a positive offset value specifies the position following the current entry.
Example 11 shows the complete code of the modified application.