for the date picker, I dont want it to be today's date. I want it to be "...", or empty
if (client.getDC_Date() != null) cmbDate1.setDate(client.getDC_Date()); cmbDate2.setDate(client.getDC_Date2()); if I dont call setDate, the picker defaults to today's date, and there is no way to leave the field blank if needed if I call setDate(null) then when the picker is selected it get's a nullpointerexception java.lang.NullPointerException at java.util.Calendar.setTime(Calendar.java:1770) at com.codename1.ui.spinner.Picker$1.actionPerformed(Picker.java:108) at com.codename1.ui.util.EventDispatcher.fireActionEvent(EventDispatcher. java:349) at com.codename1.ui.Button.fireActionEvent(Button.java:411) at com.codename1.ui.Button.released(Button.java:442) at com.codename1.ui.Button.pointerReleased(Button.java:530) at com.codename1.ui.Form.pointerReleased(Form.java:2623) at com.codename1.ui.Form.pointerReleased(Form.java:2559) at com.codename1.ui.Component.pointerReleased(Component.java:3226) at com.codename1.ui.Display.handleEvent(Display.java:2022) at com.codename1.ui.Display.edtLoopImpl(Display.java:1067) at com.codename1.ui.Display.mainEDTLoop(Display.java:996) at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120) at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176) -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/368296b6-8e22-4c5e-bf39-fcd075d7e38f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.