java - What do these JDatePicker Properties do? -


i viewed following code in context of implementing jdatepicker in this post.

utildatemodel model = new utildatemodel(); //model.setdate(20,04,2014); // need this... 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); // don't know formatter, there is... jdatepickerimpl datepicker = new jdatepickerimpl(datepanel, new datelabelformatter()); 

i wanted know properties keys "text.month" , "text.year" do. tried implementing code , no change when omitting them. furthermore, tried searching list of keys in properties class , found nothing helpful. know these property keys or how find out if omitting them acceptable?

these internationalization support. jdatecomponentfactory has code load locale-dependent resource bundles in jdatepicker distribution. think you're supposed use factory instead of constructor, , let set properties appropriately aren't coupled key strings they're using.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -