Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4620
| From | Tom <tom400f@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: JCalendar Update |
| Date | 2011-08-02 19:53 +0000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <pan.2011.08.02.19.53.16@gmail.com> (permalink) |
| References | (1 earlier) <nospam-00382F.19342129062011@news.aioe.org> <pan.2011.06.30.09.08.22@gmail.com> <nospam-1D5BEA.12151426072011@news.aioe.org> <pan.2011.08.02.09.50.49@gmail.com> <nospam-715F64.11514602082011@news.aioe.org> |
On Tue, 02 Aug 2011 11:51:46 -0400, John B. Matthews wrote: > In article <pan.2011.08.02.09.50.49@gmail.com>, Tom <tom400f@gmail.com> > wrote: > >> On Tue, 26 Jul 2011 12:15:15 -0400, John B. Matthews wrote: >> >> The next update will feature rendering enhancements. > > Thanks for undertaking this. Would there be any advantage to > accommodating size variants, when supported by the underlying L&F? > > <http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/size.html> > >> Some users have complained about slow creation times when using a large >> number of JDateChoosers... because it uses JButtons for rendering the >> calendar and creates 49 of them. This also leads to obvious >> restrictions as well as L&F dependencies. So soon-ish I imagine. > > I haven't run across this, but I can see how it might scale poorly. > FWIW, JTable mitigates this by rendering components using the flyweight > pattern, but this would be a significant change. > > <http://en.wikipedia.org/wiki/Flyweight_pattern> > <http://download.oracle.com/javase/tutorial/uiswing/components/table.html#editrender> Unsurprisingly, the plan is to rewrite the JDayChooser component to use a JTable. We'll define a renderer interface (more than likely this includes the /valid/ flag for the particular date). Then the users can render things how they want. A few weeks ago I fixed a problem for someone using Nimrod where the currently selected day was not highlighting. Using a JTable will fix all sorts of issues (eg component opacity and use of properties that some L&F do not respect) that are currently in there. Didn't know about the size thing. Will take a look at the same time.
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar
JCalendar Update Tom Sanders <tom400f@gmail.com> - 2011-06-24 10:48 +0000
Re: JCalendar Update Tom <tom400f@gmail.com> - 2011-06-29 15:08 +0000
Re: JCalendar Update "John B. Matthews" <nospam@nospam.invalid> - 2011-06-29 19:34 -0400
Re: JCalendar Update Tom <tom400f@gmail.com> - 2011-06-30 09:08 +0000
Re: JCalendar Update "John B. Matthews" <nospam@nospam.invalid> - 2011-07-26 12:15 -0400
Re: JCalendar Update Tom <tom400f@gmail.com> - 2011-08-02 09:50 +0000
Re: JCalendar Update "John B. Matthews" <nospam@nospam.invalid> - 2011-08-02 11:51 -0400
Re: JCalendar Update Tom <tom400f@gmail.com> - 2011-08-02 19:53 +0000
csiph-web