From 002e6597c6cf122004f0b256d432f2aac3b282fe Mon Sep 17 00:00:00 2001 From: "emile.malcuit" Date: Wed, 12 Mar 2025 11:56:00 +0100 Subject: [PATCH] =?UTF-8?q?jffConnexion=20et=20jffProfession=20diff=C3=A9r?= =?UTF-8?q?ence=20entre=20m=C3=A9decin=20et=20visiteur=20medical?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GSBapplication/src/presentation/jffConnexion.java | 7 ++++--- GSBapplication/src/presentation/jffProfession.form | 3 +++ GSBapplication/src/presentation/jffProfession.java | 11 ++++++++++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/GSBapplication/src/presentation/jffConnexion.java b/GSBapplication/src/presentation/jffConnexion.java index 95db4b1..bf72fee 100644 --- a/GSBapplication/src/presentation/jffConnexion.java +++ b/GSBapplication/src/presentation/jffConnexion.java @@ -9,12 +9,13 @@ package presentation; * @author emile.lalorcey */ public class jffConnexion extends javax.swing.JFrame { - + int profession; /** * Creates new form jffConnexion */ - public jffConnexion() { + public jffConnexion(int indice) { initComponents(); + this.profession = indice; } /** @@ -191,7 +192,7 @@ public class jffConnexion extends javax.swing.JFrame { /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { - new jffConnexion().setVisible(true); + new jffConnexion(1).setVisible(true); } }); } diff --git a/GSBapplication/src/presentation/jffProfession.form b/GSBapplication/src/presentation/jffProfession.form index caac07a..3722684 100644 --- a/GSBapplication/src/presentation/jffProfession.form +++ b/GSBapplication/src/presentation/jffProfession.form @@ -95,6 +95,9 @@ + + + diff --git a/GSBapplication/src/presentation/jffProfession.java b/GSBapplication/src/presentation/jffProfession.java index 030c89d..2c4a5d7 100644 --- a/GSBapplication/src/presentation/jffProfession.java +++ b/GSBapplication/src/presentation/jffProfession.java @@ -45,6 +45,11 @@ public class jffProfession extends javax.swing.JFrame { }); jBvisiteurMedical.setText("visiteur medical"); + jBvisiteurMedical.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jBvisiteurMedicalActionPerformed(evt); + } + }); jBquitter.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/quitter.png"))); // NOI18N jBquitter.setText("Quitter"); @@ -103,13 +108,17 @@ public class jffProfession extends javax.swing.JFrame { }// //GEN-END:initComponents private void jBpraticienActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBpraticienActionPerformed - // TODO add your handling code here: + new jffConnexion(0).setVisible(true); }//GEN-LAST:event_jBpraticienActionPerformed private void jBquitterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBquitterActionPerformed System.exit(0); }//GEN-LAST:event_jBquitterActionPerformed + private void jBvisiteurMedicalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBvisiteurMedicalActionPerformed + new jffConnexion(1).setVisible(true); + }//GEN-LAST:event_jBvisiteurMedicalActionPerformed + /** * @param args the command line arguments */ -- 2.47.2