Interface jffConnexion et jffProfession

This commit is contained in:
lalor
2025-03-11 18:50:42 +01:00
parent 3b15c44666
commit 62d2e336bf
8 changed files with 240 additions and 55 deletions

View File

@@ -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();
}// </editor-fold>//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
}