Examples of JDateChooser


Examples of com.toedter.calendar.JDateChooser

    return dateChooser;
  }
 
  public JDateChooser getDateChooserDoneDate(
      PresentationModel presentationModel) {
    JDateChooser dateChooser = new JDateChooser();
    PropertyConnector conn = new PropertyConnector(
        dateChooser,
        "date",
        presentationModel
            .getBufferedModel(AccidentModel.PROPERTY_DONE_DATE),
        "value");
    conn.updateProperty1();

    dateChooser.setName("DateChooserDoneDate");
    return dateChooser;
  }
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    return dateChooser;
  }

  public JDateChooser getDateChooserAccidentDate(
      PresentationModel presentationModel) {
    JDateChooser dateChooser = new JDateChooser();
    PropertyConnector conn = new PropertyConnector(
        dateChooser,
        "date",
        presentationModel
            .getBufferedModel(AccidentModel.PROPERTY_ACCIDENT_DATE),
        "value");
    conn.updateProperty1();

    dateChooser.setName("DateChooserAccidentDate");
    return dateChooser;
  }
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

     * Initierer vinduskomponenter.
     * @param window
     */
    private void initComponents(final WindowInterface window) {
        window.setName("DateView");
        dateChooser = new JDateChooser(Calendar.getInstance().getTime());
        buttonOk = new CancelButton(window, this, false, "Ok",
                IconEnum.ICON_OK, this, true);
        buttonOk.setName("ButtonOk");
    }
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

                      (Object[]) null));
                } catch (Exception e) {
                  e.printStackTrace();
                }

                JDateChooser dateChooser = new JDateChooser(
                    date);

                dateChooser
                    .addPropertyChangeListener(new PropertyChangeListener() {
                      public void propertyChange(
                          PropertyChangeEvent evt) {
                        try {
                          if (evt.getPropertyName()
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    c.fill = GridBagConstraints.BOTH;

    setLayout(gridbag);

    components = new JComponent[6];
    components[0] = new JDateChooser();
    components[1] = new JDateChooser();
    ((JDateChooser) components[1]).getJCalendar().getDayChooser()
        .addDateEvaluator(new BirthdayEvaluator());
    ((JDateChooser) components[1]).getJCalendar().getDayChooser()
        .addDateEvaluator(new TestDateEvaluator());
    ((JDateChooser) components[1]).getJCalendar().setTodayButtonVisible(
        true);
    ((JDateChooser) components[1]).getJCalendar().setNullDateButtonVisible(
        true);

    components[2] = new JDateChooser(new Date());
    components[3] = new JDateChooser(null, null, null,
        new JSpinnerDateEditor());
    components[4] = new JDateChooser("yyyy/MM/dd", "####/##/##", '_');
    components[5] = new DemoTable();

    addEntry("Default", components[0], gridbag);
    addEntry("Default (with addons)", components[1], gridbag);
    addEntry("Default with date set", components[2], gridbag);
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    public JDateTimeChooserCellEditor(String format) {
        this(format, true);
    }

    public JDateTimeChooserCellEditor(String format, boolean autoSave) {
        dateChooser = new JDateChooser(null, null, format,
            new JTextFieldDateTimeEditor());
        changingInternally = false;

        dateChooser.getDateEditor().getUiComponent().setBorder(null);
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

        defect_type.addActionListener(this);

        g.gridx = 0;   layout.setConstraints(defect_type, g);
        panel.add(defect_type);

        fix_date = new JDateChooser(date);
        fix_date.getDateEditor().getUiComponent().setToolTipText(
            resources.getString("Fix_Date_Tooltip"));
        g.insets = bottom_margin;
        g.fill = GridBagConstraints.BOTH;
        g.gridx = 1;   layout.setConstraints(fix_date, g);
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    private JDateChooser addDateField(JPanel retPanel, String labelKey) {
        JLabel label = new JLabel(getResource(labelKey) + " ");
        retPanel.add(label);
        retPanel.add(Box.createHorizontalStrut(5));

        JDateChooser result = new JDateChooser(null, DATE_FORMAT);
        result.setPreferredSize(new Dimension(DATE_CHOOSER_WIDTH,
                                              result.getPreferredSize().height));
        label.setLabelFor(result);
        result.setMaximumSize(result.getPreferredSize());
        retPanel.add(result);
        retPanel.add(Box.createHorizontalStrut(5));

        return result;
    }
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

  public JCalendarDateFieldBinder() {
    super(new String[] { DATE_FORMAT });
  }

  protected JComponent createControl(Map context) {
    return new JDateChooser();
  }
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    public void register1(){
        // Elemente
        Date dd = new Date(System.currentTimeMillis());
        this.kateg = new JComboBox(ba.getCategories());
        this.startDate = new JLabel("\tDatum ");
        this.startStamp = new JDateChooser(dd, "dd.MM.yyyy", new JSpinnerDateEditor());
        this.endDate = new JLabel(" und ");
        this.endStamp = new JDateChooser(dd, "dd.MM.yyyy", new JSpinnerDateEditor());
       
        // Panels
        JPanel underTab = new JPanel();
        underTab.setLayout(new BoxLayout(underTab, BoxLayout.X_AXIS));
        underTab.add(this.kateg);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.