Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Tom Newsgroups: comp.lang.java.programmer Subject: Re: JDateChooser setEnabled Color Date: Sun, 5 Jun 2011 21:39:13 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 35 Message-ID: References: <543b5b7c-b7f7-4445-91fb-8f65391a8c68@n11g2000yqf.googlegroups.com> NNTP-Posting-Host: Vd3zjYYo2heJAT9ZVcrkiA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Pan/0.133 (House of Butterflies) X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4995 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... 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 I'm in the process of pulling together other people's mods and will github all this soon...