public synchronized void actionPerformed(ActionEvent e) {

		if (e.getSource() == bouton){
			ModifSrid.setNewProjection(saisie1.getText());
			ConnexionBaseDonnees.setProjection(saisie1.getText());
		}

	

		System.out.println("Modification SRID");
		Connection con = null;

		try{
			Class.forName("org.postgresql.Driver");
			con = DriverManager.getConnection("jdbc:postgresql://"+ConnexionBaseDonnees.getHote()+":"+ConnexionBaseDonnees.getPort()+"/"+ConnexionBaseDonnees.getNomBase(),ConnexionBaseDonnees.getUser(),ConnexionBaseDonnees.getPswd());
			//con2 = DriverManager.getConnection("jdbc:postgresql://"+ConnexionBaseDonnees.getHote()+":"+ConnexionBaseDonnees.getPort()+"/"+ConnexionBaseDonnees.getNomBase(),ConnexionBaseDonnees.getUser(),ConnexionBaseDonnees.getPswd());

			if (con!=null){
				try{

					Statement stmt = con.createStatement();

					String query = "SELECT f_table_name as tables, f_geometry_column as geom FROM geometry_columns where f_table_name not like \'spatial_ref_sys\'";
					ResultSet rs = stmt.executeQuery(query);
					while (rs.next()) {

						String tablename = rs.getString("tables");
						String geom = rs.getString("geom");


						array.add(tablename);
						geoms.add(geom);
						//  int test = rs.getInt("sum");
						//double test2 = rs.getDouble("sum");
						//float test = rs.getFloat("sum");
						//float price = rs.getFloat("PRICE");
						// int sales = rs.getInt("SALES");
						// int total = rs.getInt("TOTAL");
						//    System.out.println("test"+tablename);
					}
					rs.close();

					for (String ef:array){
						System.out.println("Connex: "+ef);
					}

					for (String eff:geoms){
						System.out.println("SRID: "+eff);
					}


				}
				catch (SQLException s){
					System.out.println("SQL statement is not executed!");
				}
			}
		}
		catch (Exception b){
			b.printStackTrace();
			JOptionPane.showMessageDialog(this,"Erreur : "+b,"Titre : exception",JOptionPane.ERROR_MESSAGE);
		}
		
		new ModifSrid(this);

		this.dispose();

		this.setVisible(false);


	
		



	}