tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/1151-date-pickerInfinite Kind: Discussion 2015-04-25T13:51:03Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/364257672015-03-31T12:35:57Z2015-03-31T12:35:57ZDate Picker<div><p>Hi Mike,</p>
<p>You can check out the example code I just commited for the
security price entry (id: "priceui") extension in the git repo:</p>
<p>CustomDateFormat dateFormat =
UserPreferences.getInstance().getShortDateFormatter(); asOfDate =
new JDateField(dateFormat);</p>
<p><a href="https://bitbucket.org/infinitekind/moneydance_open/src/030d094f622fc1fb3d1fd136b6b2f0061f64de33/src/com/moneydance/modules/features/priceui/priceEntry/PriceEntryScreen.java">
https://bitbucket.org/infinitekind/moneydance_open/src/030d094f622f...</a></p>
<p>Thanks!<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/364257672015-04-01T05:48:41Z2015-04-01T05:48:41ZDate Picker<div><p>Sean</p>
<p>JDateField does not work in a table cell. I see that there is a
MD version of DatePicker and I was hopinmg to use that. It requires
the MoneydanceUI as a parameter and I was asking how to get to the
current instance. What I have worked out is:</p>
<p>MoneydanceUI mdGUI = Main.mainobj.getUI();</p>
<p>Is this valid and would you recommend its use?</p>
<p>Regards<br>
Mike</p></div>Mike Bray (Quote Loader Author)tag:infinitekind.tenderapp.com,2009-01-14:Comment/364257672015-04-01T08:10:06Z2015-04-01T08:10:06ZDate Picker<div><p>Hi Mike,Isn't the JDateField a subclass of JTextField? I thought
it was and could therefore be used I. A standard table cell
editor.</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/364257672015-04-01T14:38:34Z2015-04-01T14:38:34ZDate Picker<div><p>Thanks Sean, you are quite right. Some months ago we had a
similar discussion when I was trying to use a JDateField in a table
without an editor. It didnot work and at that time you said that
you haven't used a JDateField in a table. Putting it into a cell
editor seems to work.</p></div>Mike Bray (Quote Loader Author)