diff --git a/GSBapplication/nbproject/project.properties b/GSBapplication/nbproject/project.properties index 9ad9ab2..302732d 100644 --- a/GSBapplication/nbproject/project.properties +++ b/GSBapplication/nbproject/project.properties @@ -71,7 +71,7 @@ jlink.additionalmodules= jlink.additionalparam= jlink.launcher=true jlink.launcher.name=GSBapplication -main.class=gsbapplication.GSBapplication +main.class=presentation.jffProfession manifest.file=manifest.mf meta.inf.dir=${src.dir}/META-INF mkdist.disabled=false diff --git a/GSBapplication/src/gsbapplication/GSBapplication.java b/GSBapplication/src/gsbapplication/GSBapplication.java deleted file mode 100644 index 569042f..0000000 --- a/GSBapplication/src/gsbapplication/GSBapplication.java +++ /dev/null @@ -1,19 +0,0 @@ - -package gsbapplication; - -/** - * @author emile malcuit - * @version 1 - */ -public class GSBapplication { - - /** - * @param args the command line arguments - */ - public static void main(String[] args) { - // TODO code application logic here - System.out.print("3bonjour"); - System.out.print("3bonjour"); - } - -} diff --git a/GSBapplication/src/img/logodetoure.gif b/GSBapplication/src/img/logodetoure.gif new file mode 100644 index 0000000..6e2c820 Binary files /dev/null and b/GSBapplication/src/img/logodetoure.gif differ diff --git a/GSBapplication/src/img/valider.png b/GSBapplication/src/img/valider.png new file mode 100644 index 0000000..a9925a0 Binary files /dev/null and b/GSBapplication/src/img/valider.png differ diff --git a/GSBapplication/src/presentation/jffConnexion.form b/GSBapplication/src/presentation/jffConnexion.form index 769eecd..4a131f7 100644 --- a/GSBapplication/src/presentation/jffConnexion.form +++ b/GSBapplication/src/presentation/jffConnexion.form @@ -23,13 +23,101 @@ - + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GSBapplication/src/presentation/jffConnexion.java b/GSBapplication/src/presentation/jffConnexion.java index c660a51..e41d811 100644 --- a/GSBapplication/src/presentation/jffConnexion.java +++ b/GSBapplication/src/presentation/jffConnexion.java @@ -26,22 +26,87 @@ public class jffConnexion extends javax.swing.JFrame { // //GEN-BEGIN:initComponents private void initComponents() { + jLabel1 = new javax.swing.JLabel(); + jTFIdentifiant = new javax.swing.JTextField(); + jPFmdp = new javax.swing.JPasswordField(); + jBValider = new javax.swing.JButton(); + jBquitter = new javax.swing.JButton(); + jLIdentifiant = new javax.swing.JLabel(); + jLmdp = new javax.swing.JLabel(); + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + jLabel1.setText("Bonjour veuillez vous identifier"); + + jTFIdentifiant.setText("jTextField1"); + jTFIdentifiant.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTFIdentifiantActionPerformed(evt); + } + }); + + jPFmdp.setText("jPasswordField1"); + + jBValider.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/valider.png"))); // NOI18N + jBValider.setText("Valider"); + + jBquitter.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/quitter.png"))); // NOI18N + jBquitter.setText("Quitter"); + + jLIdentifiant.setText("Identifiant"); + + jLmdp.setText("Mot de passe :"); + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 400, Short.MAX_VALUE) + .addGroup(layout.createSequentialGroup() + .addGap(111, 111, 111) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addComponent(jBquitter) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(jBValider)) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) + .addGroup(layout.createSequentialGroup() + .addComponent(jLIdentifiant, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGap(18, 18, 18) + .addComponent(jTFIdentifiant, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addComponent(jLabel1)) + .addGroup(layout.createSequentialGroup() + .addComponent(jLmdp, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jPFmdp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addContainerGap(102, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 300, Short.MAX_VALUE) + .addGroup(layout.createSequentialGroup() + .addGap(42, 42, 42) + .addComponent(jLabel1) + .addGap(32, 32, 32) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jTFIdentifiant, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLIdentifiant)) + .addGap(27, 27, 27) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jPFmdp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLmdp)) + .addGap(52, 52, 52) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jBValider) + .addComponent(jBquitter)) + .addContainerGap(64, Short.MAX_VALUE)) ); pack(); }// //GEN-END:initComponents + private void jTFIdentifiantActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTFIdentifiantActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTFIdentifiantActionPerformed + /** * @param args the command line arguments */ @@ -78,5 +143,12 @@ public class jffConnexion extends javax.swing.JFrame { } // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton jBValider; + private javax.swing.JButton jBquitter; + private javax.swing.JLabel jLIdentifiant; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLmdp; + private javax.swing.JPasswordField jPFmdp; + private javax.swing.JTextField jTFIdentifiant; // End of variables declaration//GEN-END:variables } diff --git a/GSBapplication/src/presentation/jffProfession.form b/GSBapplication/src/presentation/jffProfession.form index ae3d86b..caac07a 100644 --- a/GSBapplication/src/presentation/jffProfession.form +++ b/GSBapplication/src/presentation/jffProfession.form @@ -3,6 +3,9 @@
+ + + @@ -25,13 +28,15 @@ - + - + + @@ -41,7 +46,7 @@ - + @@ -51,15 +56,23 @@ - - - - + + + + + + + + + + + - + - + @@ -70,15 +83,15 @@ - + - + - + @@ -90,6 +103,16 @@ + + + + + + + + + + diff --git a/GSBapplication/src/presentation/jffProfession.java b/GSBapplication/src/presentation/jffProfession.java index 976ca72..030c89d 100644 --- a/GSBapplication/src/presentation/jffProfession.java +++ b/GSBapplication/src/presentation/jffProfession.java @@ -27,25 +27,34 @@ public class jffProfession extends javax.swing.JFrame { private void initComponents() { jLChoixPro = new javax.swing.JLabel(); - jButton1 = new javax.swing.JButton(); - jButton2 = new javax.swing.JButton(); + jBpraticien = new javax.swing.JButton(); + jBvisiteurMedical = new javax.swing.JButton(); jBquitter = new javax.swing.JButton(); + jLLogo = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + setBackground(new java.awt.Color(255, 102, 153)); jLChoixPro.setText("Choissiez Votre Profession"); - jButton1.setText("Praticien"); - jButton1.addActionListener(new java.awt.event.ActionListener() { + jBpraticien.setText("Praticien"); + jBpraticien.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { - jButton1ActionPerformed(evt); + jBpraticienActionPerformed(evt); } }); - jButton2.setText("visiteur medical"); + jBvisiteurMedical.setText("visiteur medical"); jBquitter.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/quitter.png"))); // NOI18N jBquitter.setText("Quitter"); + jBquitter.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jBquitterActionPerformed(evt); + } + }); + + jLLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/logodetoure.gif"))); // NOI18N javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); @@ -53,12 +62,14 @@ public class jffProfession extends javax.swing.JFrame { layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) - .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jBpraticien, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(147, 147, 147)) .addGroup(layout.createSequentialGroup() .addGap(137, 137, 137) .addComponent(jLChoixPro) - .addContainerGap(125, Short.MAX_VALUE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 46, Short.MAX_VALUE) + .addComponent(jLLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) @@ -66,29 +77,38 @@ public class jffProfession extends javax.swing.JFrame { .addComponent(jBquitter) .addGap(149, 149, 149)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() - .addComponent(jButton2) + .addComponent(jBvisiteurMedical) .addGap(136, 136, 136)))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() - .addGap(25, 25, 25) - .addComponent(jLChoixPro) - .addGap(43, 43, 43) - .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(25, 25, 25) + .addComponent(jLChoixPro)) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addGap(42, 42, 42) + .addComponent(jBpraticien, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(29, 29, 29) - .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jBvisiteurMedical, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(26, 26, 26) .addComponent(jBquitter) - .addContainerGap(76, Short.MAX_VALUE)) + .addContainerGap(60, Short.MAX_VALUE)) ); pack(); }// //GEN-END:initComponents - private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed + private void jBpraticienActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBpraticienActionPerformed // TODO add your handling code here: - }//GEN-LAST:event_jButton1ActionPerformed + }//GEN-LAST:event_jBpraticienActionPerformed + + private void jBquitterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBquitterActionPerformed + System.exit(0); + }//GEN-LAST:event_jBquitterActionPerformed /** * @param args the command line arguments @@ -126,9 +146,10 @@ public class jffProfession extends javax.swing.JFrame { } // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton jBpraticien; private javax.swing.JButton jBquitter; - private javax.swing.JButton jButton1; - private javax.swing.JButton jButton2; + private javax.swing.JButton jBvisiteurMedical; private javax.swing.JLabel jLChoixPro; + private javax.swing.JLabel jLLogo; // End of variables declaration//GEN-END:variables }