private JButton btSuivant = new JButton("Suivant"); private JButton btPrecedent = new JButton("Précédent"); btSuivant.setActionCommand("bt_suivant"); btSuivant.addActionListener(new ActionListener(this) ); btPrecedent.setActionCommand("bt_precedent"); btPrecedent.addActionListener(new ActionListener(this) ); public void actionPerformed( ActionEvent ae ){ if ( ae.getActionCommand().equals("bt_suivant") ){ // ta fonction pour parcourir dans un sens } if ( ae.getActionCommand().equals("bt_precedent") ){ // ta fonction pour parcourir dans l'autre sens } }