How do I implement JDatePicker

前端 未结 2 1263
攒了一身酷
攒了一身酷 2020-11-30 05:51

I am working with the latest release 1.3.4 of JDatePicker. How should it be implemented?

I get a compiler error: The constructor JDatePanelImpl(UtilDateModel) is und

2条回答
  •  攒了一身酷
    2020-11-30 06:52

    Just use properties in the constructor of JDatePanelImpl

    Properties p = new Properties();
    p.put("text.today", "Today");
    p.put("text.month", "Month");
    p.put("text.year", "Year");
    JDatePanelImpl datePanel = new JDatePanelImpl(model, p);
    

提交回复
热议问题