public void createNavigationArrows() {
        JButton next = new JButton(">");
        JButton back = new JButton("<");
        add(back);
        add(next);
        setSize(551, 211);

        next.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                if (page < updatelist.size() - 1) {
                    page++;
                }
                try {


                    Syncstatus.setText(String.valueOf("Sync:" + updatelist.get(page).getSyncStatus()));
                    names.setText("Name: " + updatelist.get(page).getFname() + " " + updatelist.get(page).getLname());
                    companyl.setText("Company: " + updatelist.get(page).getCompany());
                    oldphonel.setText("Old Phone: " + modify.getPhone(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newphonel.setText("New Phone: " + updatelist.get(page).getPhone());
                    oldfaxl.setText("Old Fax: " + modify.getFax(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newfaxl.setText("New Fax:" + updatelist.get(page).getFax());
                    newemaill.setText("New Email: " + updatelist.get(page).getEmail());
                    oldemaill.setText("Old Email: " + modify.getEmail(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    oldtitlel.setText("Old Title: " + modify.getEmail(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newtitlel.setText("New Title :" + updatelist.get(page).getTitle());
                    oldstreetlinel.setText("Old Street Line :" + modify.getAddressLine(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newstreetlinel.setText("New Street Line :" + updatelist.get(page).getStreetline());
                    oldcityl.setText("Old City: " + modify.getCity(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newcityl.setText("New City :" + updatelist.get(page).getCity());
                    oldstatel.setText("Old State :" + modify.getState(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newstatel.setText("New State :" + updatelist.get(page).getState());
                    oldcountryl.setText("Old Country : " + modify.getCountry(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newcountryl.setText("New Country :" + updatelist.get(page).getCountry());
                    oldzipl.setText("Old Zip" + modify.getZip(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newzipl.setText("New Zip :" + updatelist.get(page).getZip());
                } catch (ParserConfigurationException ex) {
                    Logger.getLogger(GUIcompare.class.getName()).log(Level.SEVERE, null, ex);
                } catch (Exception ex) {
                    Logger.getLogger(GUIcompare.class.getName()).log(Level.SEVERE, null, ex);
                }
                pagel.setText(("Page " + (page + 1) + "of " + updatelist.size()));
            }
        });
        back.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                try {
                    if (page > 0) {
                        page--;
                    }
                    Syncstatus.setText("Sync: " + String.valueOf(updatelist.get(page).getSyncStatus()));
                    names.setText("Name: " + updatelist.get(page).getFname() + " " + updatelist.get(page).getLname());
                    companyl.setText("Company: " + updatelist.get(page).getCompany());
                    oldphonel.setText("Old Phone: " + modify.getPhone(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newphonel.setText("New Phone: " + updatelist.get(page).getPhone());
                    oldfaxl.setText("Old Fax: " + modify.getFax(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newfaxl.setText("New Fax:" + updatelist.get(page).getFax());
                    newemaill.setText("New Email: " + updatelist.get(page).getEmail());
                    oldemaill.setText("Old Email: " + modify.getEmail(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    oldtitlel.setText("Old Title: " + modify.getEmail(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newtitlel.setText("New Title :" + updatelist.get(page).getTitle());
                    oldstreetlinel.setText("Old Street Line :" + modify.getAddressLine(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newstreetlinel.setText("New Street Line :" + updatelist.get(page).getStreetline());
                    oldcityl.setText("Old City: " + modify.getCity(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newcityl.setText("New City :" + updatelist.get(page).getCity());
                    oldstatel.setText("Old State :" + modify.getState(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newstatel.setText("New State :" + updatelist.get(page).getState());
                    oldcountryl.setText("Old Country : " + modify.getCountry(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newcountryl.setText("New Country :" + updatelist.get(page).getCountry());
                    oldzipl.setText("Old Zip" + modify.getZip(updatelist.get(page).getFname(), updatelist.get(page).getLname()));
                    newzipl.setText("New Zip :" + updatelist.get(page).getZip());
                } catch (ParserConfigurationException ex) {
                    Logger.getLogger(GUIcompare.class.getName()).log(Level.SEVERE, null, ex);
                } catch (Exception ex) {
                    Logger.getLogger(GUIcompare.class.getName()).log(Level.SEVERE, null, ex);
                }
                pagel.setText(("Page " + (page + 1) + "of " + updatelist.size()));

            }
        });
    }