Package com.toedter.calendar

Examples of com.toedter.calendar.JTextFieldDateEditor


     *
     * @param builder builder.
     */
    protected void addCustomControls(BBFormBuilder builder)
    {
        pkDate = new JDateChooser(new JTextFieldDateEditor("MM/dd/yyyy", "##/##/####", '_'));
        pkDate.setDate(new Date());

        Component[] cmps = pkDate.getComponents();
        for (Component cmp : cmps) if (cmp instanceof JButton) pkDate.remove(cmp);
       
View Full Code Here


   * Construit un objet en se servant du modèle passé en paramètre
   *
   * @param cdm Le modèle de Date
   */
  public DateChooser(CurrentDateModel cdm){
    super(cdm.getDate(),"d MMM yyyy",new JTextFieldDateEditor());
    JTextFieldDateEditor editor = (JTextFieldDateEditor)(this.getDateEditor());
    editor.addPropertyChangeListener("maDate",this);
    //On empéche la possibilité d'éditer le champ
    editor.setEditable(false);
    this.cdm = cdm;   
    //this.setPreferredSize(new Dimension(5, 5));
  }
View Full Code Here

TOP

Related Classes of com.toedter.calendar.JTextFieldDateEditor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.