Skip to main content

Calendar component contribution

20 replies [Last post]
ronaldtm
Offline
Joined: 2003-07-18
Points: 0

Hi,

I'd like to contribute some code to the SwingX project. I've coded this Calendar component following the swing principles (separated view/model, renderer, etc), and trying to make it look like Windows' calendar (that shows up when you double-click the icon tray clock).

I've also coded some Document-derived classes (text components models), following Jakarta's Commons-Collections decorator patterns (you'd do something like this to have a numeric field with 10 chars of max length:

<br />
   Document doc = textfield.getDocument();<br />
   doc = NumericDocument.decorate(doc);<br />
   doc = LimitedLengthDocument.decorate(doc, 10);<br />
   textfield.setDocument(doc);<br />

An applet demo (flowlayout used, don't mind) and javadocs at:
http://planeta.terra.com.br/educacao/ronald.tetsuo/SwingExtensions/

Is is of any interest?

I'm aware that I must sign the JCA to contribute, I'll do that once I produce something you like :)

Tetsuo

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ronaldtm
Offline
Joined: 2003-07-18
Points: 0

Hi, Joshua!

I saw your component, cool! It gave me the idea about the real requirements for a component like this.

I hadn't released the source before because of the JCA. Now that I've already signed, I don't know how to do this. May I put it in my public server?

I've been working on a selection model for my component, and I added the week selection after I saw the JXMonthView in action (and know better its requisites).

I didn't look deep into your code, so I'm not sure how could they be merged. I used the JTable defaults for the UI (colors, borders, etc), so that it could adapt to any LaF seemlessly. I think we could use that, plus the models and renderers separation, to increase flexibility.

Am I too eager for flexibility? I think that, since it is a SwingX component (swing-like, lower-level), it should be focused on flexibility and reusability, and the JDNC API should provide higher level components, if it is needed at all.

What do you think?

Tetsuo

dmouse
Offline
Joined: 2003-06-09
Points: 0

Tetsuo,

Flexibility is definately a good thing. Of course we don't want to make it so flexible that the user has to write a lot of code to get things working by default.

It's great to hear that you signed the JCA and I am looking forward to taking a look at your code. The renderers/models was one of the aspects I was interested in looking at when I was looking at your javadoc. I don't currently know where you can host the code. Hopefully someone else on the JDNC team can give you an answer.

Ivan created a new topic for the JXMonthView so I'll try to post follow-ups there now.

Josh

Anonymous

> I know Sun people are not ignoring anybody :-) I
> don't know about others on this forum. Is there
> interest in a DatePicker component as part of
> JDNC/SwingX? We, at Sun, would like to know too.
I haven't seen a single _real_world_ application that doesn't required date or time.
It means that DatePicker, Calendar, etc. must be available.

Calendar looks promising !
Bring it on!

Hey guys from SUN!
You should kick some butts and open a Sandbox where code can be added fast.
Right now I am waiting more than a month to approve a project ...

I am trying to use JXTable, and I can find just some skeletons, most of the data components is in early alfa stage and useless.

Just give the community a way to build what do we need.

zander
Offline
Joined: 2003-06-13
Points: 0

> You should kick some butts and open a Sandbox where
> code can be added fast.
> Right now I am waiting more than a month to approve a
> project ...
...
> Just give the community a way to build what do we
> need.

An temporary solution would be to start collecting stuff in an external project on (for example) sourceforge until Sun has the options under way.

I'm sure that if cvs commit rights are granted to many people here this incubator would move very fast indeed!

Anyone who wants to give this idea a try?

Amy Fowler

jdnc-interest@javadesktop.org wrote:

>>You should kick some butts and open a Sandbox where
>>code can be added fast.
>>Right now I am waiting more than a month to approve a
>>project ...
>
> ...
>
>>Just give the community a way to build what do we
>>need.
>
>
> An temporary solution would be to start collecting stuff in an external project on (for example) sourceforge until Sun has the options under way.
>
> I'm sure that if cvs commit rights are granted to many people here this incubator would move very fast indeed!
>
> Anyone who wants to give this idea a try?

We've decided to open up an "incubator" subproject for JDNC, which
would be exactly for this purpose. It would be a place to put
contributions where the jdnc community could access them and provide
us feedback whether you'd like to see them pulled into the jdnc primary
projects. The person setting this up is on vacation this week, but
you should see this happen in a week or so.

Aim

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

Anonymous

> The person setting this up is on vacation
> this week, but
> you should see this happen in a week or so.
Thank's Any :)
Keep us posted.

augusto
Offline
Joined: 2003-06-11
Points: 0

ronaldtm ;

The calendar component looks very nice, haven't seen the API, but the look and feel is pretty good. Can't wait for this to be added to the site somewhere so we can play around it a bit more. Great job!

overload
Offline
Joined: 2004-03-17
Points: 0

I tried visiting the link but is not working.

I alsoi developed a calendar component for swing using
MVC model. Please see: http://www.java-calendar.com

rameshgupta
Offline
Joined: 2004-06-04
Points: 0

> I tried visiting the link but is not working.

Which link is not working?

Ramesh

ronaldtm
Offline
Joined: 2003-07-18
Points: 0

Maybe it's the link to my calendar demo applet? Try this:
http://planeta.terra.com.br/educacao/ronald.tetsuo/SwingExtensions/

dmouse
Offline
Joined: 2003-06-09
Points: 0

Guess I'll introduce myself here since this thread sums up some of the work I've been doing for the last number of months. I'm Joshua and work at Sun and have recently been working on the Glow project, a calendar client. During the project there was a need for a calendar component as many of you have noted. The JDNC team has been waiting for me to integrate this which as of today I have finally done.

I have looked at Tetsuo's calendar component, via the test app and javadoc, I didn't see any source code, and I would like to discuss the integration of these two components into one.

In the meantime it would be great to get input from others regarding the issues/features for this newly integrated class org.jdesktop.swing.calendar.JXMonthView. I look forward to hearing from you all and hope this component will finally fill in a hole that has been missing for a long time.

Joshua

Anonymous

Hi Joshua.

Great calendar :)
I created a new Topic about it. `JXMonthView component`

Are you planning to implement org.jdesktop.swing.JXDatePicker ?
If yes what it a rough timeline for it ?

rameshgupta
Offline
Joined: 2004-06-04
Points: 0

> Are you planning to implement
> org.jdesktop.swing.JXDatePicker ?
> If yes what it a rough timeline for it ?

org.jdesktop.swing.JXDatePicker was a temporary solution (as indicated by the comments in the source file) that we put in place while waiting for the Glow team to donate parts of their calendar project to the JDNC project.

For a better date picker gui, you should consider using JXMonthView. Also, while JXDatePicker only lets you read a single date, JXMonthView lets you pick a date span that users can select interactively.

Ramesh

ronaldtm
Offline
Joined: 2003-07-18
Points: 0

How can I send some code for evaluation? I've already sent the JCA by fax.

rameshgupta
Offline
Joined: 2004-06-04
Points: 0

> How can I send some code for evaluation? I've already
> sent the JCA by fax.

The JDNC team at Sun just discussed this issue today, and we agreed that we need a place in our project to act as an incubator/evaluation sandbox for new contributions from the community. Please give us some more time to set this up :-) Thanks.

Ramesh

ronaldtm
Offline
Joined: 2003-07-18
Points: 0

This forum only registers responses sent directly from here, isn't it? Shouldn't it keep e-mail replied messages too? Well, I've received some interested responses (replied directly by e-mail), so I'll continue to discuss about the component.

As I've said, I've followed the standard Swing principles, to make it as flexible as possible (like a JTable). I believe that SwingX components should be like this, to act as building blocks (a little complex, but highly flexible) for easier-to-use, higher-level components (JDNC API).

In my example, all components use the same model, a ProxyCalendarModel. This proxy allows me to easily switch between a DefaultCalendarModel and a SystemClockCalendarModel (update in 1 seg intervals).

These Calendar components still lacks lots of features, like a model for selection, multiple selection, selection filter, etc., but it already provides the skeleton of the framework to build on top of.

I'm going to sign and send the JCA as soon as possible, so you can look at the source code. But suggestions are always welcome!

Tetsuo

ronaldtm
Offline
Joined: 2003-07-18
Points: 0

hmmm... Am I being ignored? I'll repost, then

[quote]
Hi,

I'd like to contribute some code to the SwingX project. I've coded this Calendar component following the swing principles (separated view/model, renderer, etc), and trying to make it look like Windows' calendar (that shows up when you double-click the icon tray clock).

I've also coded some Document-derived classes (text components models), following Jakarta's Commons-Collections decorator patterns (you'd do something like this to have a numeric field with 10 chars of max length:

Document doc = textfield.getDocument();
doc = NumericDocument.decorate(doc);
doc = LimitedLengthDocument.decorate(doc, 10);
textfield.setDocument(doc);

An applet demo (flowlayout used, don't mind) and javadocs at:
http://planeta.terra.com.br/educacao/ronald.tetsuo/SwingExtensions/

Is is of any interest?

I'm aware that I must sign the JCA to contribute, I'll do that once I produce something you like

Tetsuo
[/quote]

rameshgupta
Offline
Joined: 2004-06-04
Points: 0

> hmmm... Am I being ignored? I'll repost, then
>
> [quote]
> Hi,
>
> I'd like to contribute some code to the SwingX
> project. I've coded this Calendar component
[snip]
>
> Is is of any interest?
[snip]

I know Sun people are not ignoring anybody :-) I don't know about others on this forum. Is there interest in a DatePicker component as part of JDNC/SwingX? We, at Sun, would like to know too.

Ramesh

Joshua Marinacci

definately.
it's one of the glaring omissions of Swing.
thanks!

- j

jdnc-interest@javadesktop.org wrote:

>>hmmm... Am I being ignored? I'll repost, then
>>
>>[quote]
>> Hi,
>>
>>I'd like to contribute some code to the SwingX
>>project. I've coded this Calendar component
>
> [snip]
>
>>Is is of any interest?
>
> [snip]
>
> I know Sun people are not ignoring anybody :-) I don't know about others on this forum. Is there interest in a DatePicker component as part of JDNC/SwingX? We, at Sun, would like to know too.
>
> Ramesh
> ---
> [Message sent by forum member 'rameshgupta' (Ramesh Gupta)]
>
> http://www.javadesktop.org/forums/thread.jspa?messageID=18562&#18562
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
> For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

jtr
Offline
Joined: 2003-06-10
Points: 0

I haven't looked at the API or the code, but I agree with Joshua. The missing common calender (or date selection widget) is an issue.

Of course, a nice layout manager like the JGoodies one is much higher on my list. :)