The buttons are working but they are interacting with the compiler not the gui?
<p>Im guessing my buttons are right, but when clicked they add integers on the compiler and subtract integers using the next and previous buttons. i want them to scroll through the contacts on the file i have connected?</p>

<pre><code>    public void nextContact()
    {

       if(index &lt; details.size() - 1)               
       {           

            index++; 
            System.out.println(index);

            txtname.setText(name.get(index));                
            txtnum.setText(phone.get(index));               
            txtmob.setText(mobile.get(index));               
            txtadd1.setText(address.get(index));            
       }                
       importContacts();
    }

    public void prevContact()
    {
    if (index &gt; 0)               
     {                       
           index--;  
           System.out.println(index);

            txtname.setText(name.get(index));                
            txtnum.setText(phone.get(index));               
            txtmob.setText(mobile.get(index));               
            txtadd1.setText(address.get(index));               
     }                

     importContacts();

    }
</code></pre>
