Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #5000
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JDateChooser setEnabled Color |
| Date | 2011-06-06 00:02 -0400 |
| Organization | The Wasteland |
| Message-ID | <nospam-6ED388.00023706062011@news.aioe.org> (permalink) |
| References | <543b5b7c-b7f7-4445-91fb-8f65391a8c68@n11g2000yqf.googlegroups.com> <nospam-DF21D0.13292205062011@news.aioe.org> <isgt21$hum$1@speranza.aioe.org> |
In article <isgt21$hum$1@speranza.aioe.org>, Tom <tom400f@gmail.com> 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: > > > > <http://groups.google.com/group/comp.lang.java.programmer/msg/39c807ad8e131973> > > > > 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 <http://sites.google.com/site/drjohnbmatthews>
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
JDateChooser setEnabled Color Biagio <software@notario.it> - 2011-06-05 00:52 -0700
Re: JDateChooser setEnabled Color "John B. Matthews" <nospam@nospam.invalid> - 2011-06-05 13:29 -0400
Re: JDateChooser setEnabled Color Tom <tom400f@gmail.com> - 2011-06-05 21:39 +0000
Re: JDateChooser setEnabled Color "John B. Matthews" <nospam@nospam.invalid> - 2011-06-06 00:02 -0400
Re: JDateChooser setEnabled Color Tom <tom400f@gmail.com> - 2011-06-06 19:53 +0000
Re: JDateChooser setEnabled Color Biagio <software@notario.it> - 2011-06-06 02:15 -0700
Re: JDateChooser setEnabled Color Roedy Green <see_website@mindprod.com.invalid> - 2011-06-06 19:27 -0700
csiph-web