private void showPage(URL pageUrl, boolean addToList) {
        try {
// Get URL of page currently being displayed.
            URL currentUrl = displayEditorPane.getPage();
// Load and display specified page.
            displayEditorPane.setPage(pageUrl);
            //displayEditorPane.setPage("http://192.168.1.90/html/phd-mysql/index.php");
// Get URL of new page being displayed.
            URL newUrl = displayEditorPane.getPage();
// Add page to list if specified.
            if (addToList) {
                int listSize = pageList.size();
                if (listSize > 0) {
                    int pageIndex = pageList.indexOf(currentUrl.toString());

                    if (pageIndex < listSize - 1) {
                        for (int i = listSize - 1; i >
                                pageIndex; i--) {
                            pageList.remove(i);
                        }

                    }
                }
                pageList.add(newUrl.toString());
            }
// Update location packet field with URL of current page.
            locationTextField.setText(newUrl.toString());
// Update buttons based on the page being displayed.
            updateButtons();

        } catch (Exception e) {
// Show error message.





            showError(
                    "Unable to load page");
        } finally {
        }
    }