Package com.peusoft.widget.calendar.datepicker.celleditor

Examples of com.peusoft.widget.calendar.datepicker.celleditor.ButtonDatePickerTableCellEditor


    setIconImage(new ImageIcon("/icons/Calender_Day_First.png").getImage());
   
    initComponents();
       
    try {
      ButtonDatePickerTableCellEditor editor1 = new ButtonDatePickerTableCellEditor(ButtonDatePickerTableCellEditor.CALENDAR_TYPE);
      editor1.setIcalUrl("com/peu/widget/calendar/example/Holidays.ics");
      tblButtonDatePickerTable.setDefaultEditor(Calendar.class, null);
      tblButtonDatePickerTable.setDefaultEditor(Calendar.class, editor1);
      ButtonDatePickerTableCellEditor editor2 = new ButtonDatePickerTableCellEditor(ButtonDatePickerTableCellEditor.DATE_TYPE);
      editor2.setIcalUrl("com/peu/widget/calendar/example/Holidays.ics");
      tblButtonDatePickerTable.setDefaultEditor(Date.class, null);
      tblButtonDatePickerTable.setDefaultEditor(Date.class, editor2);
      ButtonDatePickerTableCellEditor editor3 = new ButtonDatePickerTableCellEditor(ButtonDatePickerTableCellEditor.SHORT_STRING_TYPE);
      editor3.setIcalUrl("com/peu/widget/calendar/example/Holidays.ics");
      tblButtonDatePickerTable.setDefaultEditor(String.class, null);
      tblButtonDatePickerTable.setDefaultEditor(String.class, editor3);

      tblButtonDatePickerTable.getModel().setValueAt(Calendar.getInstance(), 0, 0);
      tblButtonDatePickerTable.getModel().setValueAt(new Date(), 0, 1);
      tblButtonDatePickerTable.getModel().setValueAt("", 0, 2);
    } catch (IllegalArgumentException e) {
      JOptionPane.showMessageDialog(this, e.getLocalizedMessage(), "Error", JOptionPane.ERROR_MESSAGE);
    }

    try {
      DatePickerTableCellEditor editor1 = new DatePickerTableCellEditor(ButtonDatePickerTableCellEditor.CALENDAR_TYPE);
      editor1.setIcalUrl("com/peu/widget/calendar/example/Holidays.ics");
      tblDatePickerTable.setDefaultEditor(Calendar.class, null);
      tblDatePickerTable.setDefaultEditor(Calendar.class, editor1);
      DatePickerTableCellEditor editor2 = new DatePickerTableCellEditor(ButtonDatePickerTableCellEditor.DATE_TYPE);
      editor2.setIcalUrl("com/peu/widget/calendar/example/Holidays.ics");
      tblDatePickerTable.setDefaultEditor(Date.class, null);
      tblDatePickerTable.setDefaultEditor(Date.class, editor2);
      DatePickerTableCellEditor editor3 = new DatePickerTableCellEditor(ButtonDatePickerTableCellEditor.SHORT_STRING_TYPE);
      editor3.setIcalUrl("com/peu/widget/calendar/example/Holidays.ics");
      tblDatePickerTable.setDefaultEditor(String.class, null);
      tblDatePickerTable.setDefaultEditor(String.class, editor3);

      tblDatePickerTable.getModel().setValueAt(Calendar.getInstance(), 0, 0);
      tblDatePickerTable.getModel().setValueAt(new Date(), 0, 1);
View Full Code Here

TOP

Related Classes of com.peusoft.widget.calendar.datepicker.celleditor.ButtonDatePickerTableCellEditor

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.