bouton.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ String req="update from employe"; try{Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection Con=DriverManager.getConnection("Mes documents/Personnel"); Statement st = Con.createStatement(); int x = st.executeUpdate(req); st.close(); Con.close(); } catch(SQLException s){ JOptionPane.showMessageDialog(null, "Erreur requete","Alert", JOptionPane.ERROR_MESSAGE); } } });