* Constructeur
*/
public ChauffeurEditionFenetre() {
aDialog = new JDialog(MainWindow.cadrePrincipal(), " Chauffeur...", true);
textNom = new JTextControlKey("", 30, IsNumString);
textPrenom = new JTextControlKey("", 30, IsNumString);
textRue = new JTextArea(30, 6);
textRue.setFont(titreFont);
textRue.setForeground(new java.awt.Color(66, 79, 120));
textNumeroRue = new JTextControlKey("", 11, IsNumString);
cmbCp = new JComboBox(getListeLocaliteCp());
cmbLoca = new JComboBox(getListeLocaliteCommune());
cmbVille = new JComboBox(getListeVille());
ani = new ImageIcon(getClass().getClassLoader().getResource("images/logoCalender.jpg"));
textDtNais = new JLabel();
textDtNais.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(66, 79, 120), 2));
textDtNais.setIcon(ani);
textDtNais.setFont(titreFont);
textDtNais.setForeground(new java.awt.Color(66, 79, 120));
textDtNais.addMouseListener(new MouseListener() {
public void mouseClicked(MouseEvent e) {
DateCalendar fen = new DateCalendar(MainWindow.cadrePrincipal(), DateCalendar.Mode.DATE_SEULEMENT);
fen.affiche();
if (fen.okFlag) {
Date dateNaissance = fen.retourDate();
textDtNais.setText(new SimpleDateFormat(MotsCleProjet.DATE_FORMAT).format(dateNaissance));
} else {
textDtNais.setText(DATE_ERREUR_TEXTE);
MessageBox(MainWindow.desktop(), "DATE INVALIDE...");
}
}
public void mouseEntered(MouseEvent e) {}
public void mouseExited(MouseEvent e) {}
public void mousePressed(MouseEvent e) {}
public void mouseReleased(MouseEvent e) {}
});
getAge();
textNumNat = new JTextControlKey("", 30, IsNumString);
cmbSexe = new JComboBox();
cmbSexe.setFont(titreFont);
cmbSexe.setForeground(new java.awt.Color(66, 79, 120));
cmbSexe.addItem("Feminin");
cmbSexe.addItem("Masculin");
cmbEtCiv = new JComboBox();
cmbEtCiv.setFont(titreFont);
cmbEtCiv.setForeground(new java.awt.Color(66, 79, 120));
cmbEtCiv.addItem("C�libataire");
cmbEtCiv.addItem("Mari�(e)");
cmbEtCiv.addItem("Divorc�(e)");
cmbEtCiv.addItem("Veuf(ve)");
cmbNbPersonne = new JComboBox();
cmbNbPersonne.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(66, 79, 120), 2));
cmbNbPersonne.setFont(titreFont);
cmbNbPersonne.setForeground(new java.awt.Color(66, 79, 120));
cmbNbPersonne.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(66, 79, 120), 2));
for (int i = 0; i <= 20; i++) {
cmbNbPersonne.addItem(i);
}
cmbNbPersonne.addActionListener(this);
textTelephone = new JTextControlKey("", 13, IsNumString);
textGsm = new JTextControlKey("", 14, IsNumString);
textEmail = new JTextControlKey("", 60, IsNumString);
textNumCpteChauf = new JTextControlKey("", 30, IsNumString);
getPermis();
getDatePermis();
getDateValiditePermis();
getDureePermis();
getEtatPermis();
getVisiteMedicale();
textCertifBVM = new JTextControlKey("", 10, IsNumString);
cmbEtats = new JComboBox(getListeEtats());
okFlag = false;
}