precedent = new JButton("Précédent");
this.photosDisponibles.addAll(photosDisponibles);
suivant.addMouseListener(new MouseListener() {
@Override
public void mouseReleased(MouseEvent arg0) {}
@Override
public void mousePressed(MouseEvent arg0) {}
@Override
public void mouseExited(MouseEvent arg0) {}
@Override
public void mouseEntered(MouseEvent arg0) {}
@Override
public void mouseClicked(MouseEvent arg0) {
if(indexCourant == (getNbPhotosDisponibles()-1))
{
indexCourant = 0;
indexAffiche = 1;
getImageByIndex(indexCourant);
}
else
{
indexCourant++;
indexAffiche++;
getImageByIndex(indexCourant);
}
}
});
precedent.addMouseListener(new MouseListener() {
@Override
public void mouseReleased(MouseEvent arg0) {}
@Override