Announcement Announcement Module
Collapse
No announcement yet.
JXDatePicker clears time time part fix Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JXDatePicker clears time time part fix

    The JXDatePicker clears the time port of a Date field

    See http://forums.java.net/jive/thread.j...ssageID=321571

    The following will make date fields display the time part.

    public class JXDatePickerWithTimeDateFieldBinder extends
    JXDatePickerDateFieldBinder {

    @Override
    protected JComponent createControl(Map context) {
    JXDatePicker p = (JXDatePicker) super.createControl(context);
    p.getMonthView().setSelectionModel(new SingleDaySelectionModel());
    return p;
    }

    }

    To configure

    <bean class="JXDatePickerWithTimeDateFieldBinder">
    <property name="dateFormat" value="dd/MM/yyyy HH:mm:ss" />
    </bean>

  • #2
    Thanks, I'll add it to the binders

    Comment

    Working...
    X