Compare commits
	
		
			4 Commits
		
	
	
		
			46a255b6eb
			...
			d9a424bd6e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | d9a424bd6e | ||
| 892d023222 | |||
| 239902c078 | |||
| 6b7bc3fc49 | 
							
								
								
									
										24
									
								
								GSBapplication/src/TEST/test.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								GSBapplication/src/TEST/test.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| /* | ||||
|  * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license | ||||
|  * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template | ||||
|  */ | ||||
| package TEST; | ||||
|  | ||||
| import acces_aux_donnes.connexionSQL; | ||||
| import java.sql.Connection; | ||||
| import java.sql.ResultSet; | ||||
| import java.sql.Statement; | ||||
|  | ||||
| /** | ||||
|  * | ||||
|  * @author emile.lalorcey | ||||
|  */ | ||||
| public class test { | ||||
|     private Connection connexionTest; | ||||
|     private Statement stmt = 	null; | ||||
|     private ResultSet result = 	null; | ||||
|      | ||||
|     | ||||
|     connexionTest = connexionSQL.getConnect("10.121.38.196","bdgsb","admin","admin"); | ||||
|      | ||||
| } | ||||
							
								
								
									
										25
									
								
								GSBapplication/src/TEST/testMain.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								GSBapplication/src/TEST/testMain.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| /* | ||||
|  * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license | ||||
|  * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template | ||||
|  */ | ||||
| package TEST; | ||||
|  | ||||
| import acces_aux_donnes.connexionSQL; | ||||
| import java.sql.Connection; | ||||
|  | ||||
| /** | ||||
|  * | ||||
|  * @author medhi.rodrigues | ||||
|  */ | ||||
| public class testMain { | ||||
|  | ||||
|     /** | ||||
|      * @param args the command line arguments | ||||
|      */ | ||||
|     public static void main(String[] args) { | ||||
|          | ||||
|         Connection connexionTest = connexionSQL.getConnect("10.121.38.196","bdgsb","adminGSB","mdpGSB"); | ||||
|          | ||||
|     } | ||||
|      | ||||
| } | ||||
| @@ -51,7 +51,7 @@ public class connexionSQL { | ||||
|      * @return connection <20>tablie | ||||
|      */   | ||||
|     public static Connection getConnect(String serveur, String bdd, String nomUtil, String mdp) { | ||||
|         System.out.println("getConnect"); | ||||
|         System.out.println("Connexion valid<69>"); | ||||
|         if (connect == null) { | ||||
|             new connexionSQL(serveur, bdd, nomUtil, mdp); | ||||
|         } | ||||
|   | ||||
| @@ -156,6 +156,9 @@ | ||||
|             </Property> | ||||
|             <Property name="text" type="java.lang.String" value="Valider"/> | ||||
|           </Properties> | ||||
|           <Events> | ||||
|             <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jBValiderActionPerformed"/> | ||||
|           </Events> | ||||
|         </Component> | ||||
|         <Component class="javax.swing.JLabel" name="jLLogo"> | ||||
|           <Properties> | ||||
|   | ||||
| @@ -61,6 +61,11 @@ public class jffConnexion extends javax.swing.JFrame { | ||||
|  | ||||
|         jBValider.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/valider.png"))); // NOI18N | ||||
|         jBValider.setText("Valider"); | ||||
|         jBValider.addActionListener(new java.awt.event.ActionListener() { | ||||
|             public void actionPerformed(java.awt.event.ActionEvent evt) { | ||||
|                 jBValiderActionPerformed(evt); | ||||
|             } | ||||
|         }); | ||||
|  | ||||
|         jLLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/logodetoure.gif"))); // NOI18N | ||||
|  | ||||
| @@ -147,6 +152,12 @@ public class jffConnexion extends javax.swing.JFrame { | ||||
|         // TODO add your handling code here: | ||||
|     }//GEN-LAST:event_jPFmdpActionPerformed | ||||
|  | ||||
|     private void jBValiderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBValiderActionPerformed | ||||
|         String identifiant = "DIDIER"; | ||||
|          | ||||
|         if (jTFIdentifiant.getText() == identifiant){} | ||||
|     }//GEN-LAST:event_jBValiderActionPerformed | ||||
|  | ||||
|     /** | ||||
|      * @param args the command line arguments | ||||
|      */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user