Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.java.programmer Subject: Re: JDateChooser setEnabled Color Date: Mon, 06 Jun 2011 00:02:37 -0400 Organization: The Wasteland Lines: 52 Message-ID: References: <543b5b7c-b7f7-4445-91fb-8f65391a8c68@n11g2000yqf.googlegroups.com> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5000 In article , Tom wrote: > On Sun, 05 Jun 2011 13:29:22 -0400, John B. Matthews wrote: > > > As an aside, I was recently critical of the demo's layout: > > > > > > > > Line 132 in com.toedter.calendar.demo.JCalendarDemo is the problem: > > > > splitPane.setDividerLocation(190); > > > > Simply remove it to allow pack() to do the right thing. > > Ah - didn't realise it was only the demo program you were unhappy > about... Honestly, I didn't know either. :-) It was just the first thing I ran across, and I feared it was an ill omen. Of course, the more I use it, the more I like it. > Anyway, the aforementioned additions were: > - nullText property - if the JDC's date is null then display any null > text, for example "Open Ended" > > - selectOnFocus property - optionally select the text when the editor > gets the focus > > - dateVerifier property - an interface that JDC calls back on to > allow client code to indicate whether a date is selectable; calendar > buttons are disabled for invalid dates and the editors skip to the > next valid date in the "direction of travel" > > - use action map to (ctrl-c) popup the calendar; (ctrl-n) set to null > > - provide access to the DateFormat inside so you can (eg) set its > timezone The dateVerifier looked especially appealing, although I'd since reverted to the stock 1.3.3. It's clear you've worked with it extensively; I'd welcome any comment you have on my response to the OP. > I'm in the process of pulling together other people's mods and will > github all this soon... Excellent. -- John B. Matthews trashgod at gmail dot com