textDtDebCont.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(66, 79, 120), 2));
textDtDebCont.setIcon(ani);
textDtDebCont.addMouseListener(new MouseListener() {
public void mouseClicked(MouseEvent e) {
DateCalendar fen = new DateCalendar(MainWindow.cadrePrincipal(), DateCalendar.Mode.DATE_SEULEMENT);
fen.affiche();
if (fen.okFlag) {
//Date date = fen.retourDate();
Date date = fen.retourDateSansTime();
textDtDebCont.setText(new SimpleDateFormat(gui.MotsCleProjet.DATE_FORMAT).format(date));
} else {
textDtDebCont.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) {}
});
//textDateFin = new JTextControlKey("",10,IsNumString);
ani = new ImageIcon(getClass().getClassLoader().getResource("images/logoCalender.jpg"));
textDtFinCont= new JLabel();
textDtFinCont.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(66, 79, 120), 2));
textDtFinCont.setIcon(ani);
textDtFinCont.addMouseListener(new MouseListener() {
public void mouseClicked(MouseEvent e) {
DateCalendar fen = new DateCalendar(MainWindow.cadrePrincipal(), DateCalendar.Mode.DATE_SEULEMENT);
fen.affiche();
if (fen.okFlag) {
Date date = fen.retourDateSansTime();
textDtFinCont.setText(new SimpleDateFormat(gui.MotsCleProjet.DATE_FORMAT).format(date));
} else {
textDtFinCont.setText("");
}
}