This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JCalendar form sun Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JCalendar form sun" Watch "JCalendar form sun" New topic
Author

JCalendar form sun

nirmal Rchavan
Ranch Hand

Joined: Jul 10, 2007
Posts: 35
The JCalendar component avaliable form the sun website is great. Best thing is U can customize it based on your needs.
My question to every one having konwledge of it is,
The dates displayed in the UI according to the days ie (below columns S M T W T F S) are correct, now say a month has 31 days and the 31st falls on a Monday, the next month 1st is displayed on Tuesday of the same month.
Please check it out and let me know is that a BUG OR NOT.
if its a bug then what would be the solution.

Appretiate your help Thanks
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36599
    
  16
Don't know. This doesn't seem to be part of the standard API, so please tell us where you can get it from.
Luciano A. Pozzo
Ranch Hand

Joined: Jun 20, 2005
Posts: 112
Nirmal,

I am not sure if the component that you found is from Sun. So, you should check it. But, I was satisfied by a free Calendar component that I found in the internet. Maybe you can use it. The link is :

Toedter Swing Calendar
[ July 18, 2007: Message edited by: Luciano A. Pozzo ]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36599
    
  16
Thank you. I have come across Toedter before, but haven't needed to use his calendar yet. It is highly recommended in some other sources, too.
nirmal Rchavan
Ranch Hand

Joined: Jul 10, 2007
Posts: 35
This is the site
/*https://jcalendar.dev.java.net/*/
I am not sure wheather it is form sun or not?
Ashok Mor
Ranch Hand

Joined: Jul 17, 2007
Posts: 43
It's from sun only
nirmal Rchavan
Ranch Hand

Joined: Jul 10, 2007
Posts: 35
I am pretty sure that this calenar is from sun.

My question to every one having konwledge of it is,
The dates displayed in the UI according to the days ie (below columns S M T W T F S) are correct, now say a month has 31 days and the 31st falls on a Monday, the next month 1st is displayed on Tuesday of the same month.
Please check it out and let me know is that a BUG OR NOT.
if its a bug then what would be the solution.

Appretiate your help Thanks
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36599
    
  16
Thank you for the website. I have downloaded the source for future reference.

I don't think it is from Sun, because it is shown as having an Apache license. The screenshots on the website seem to show 31-1-2-3-4-5-6 when the first day of the week is the 31st, so that is presumably an intended display option. Don't know how one can change it, I am afraid.
nirmal Rchavan
Ranch Hand

Joined: Jul 10, 2007
Posts: 35
Thanks Ritch for the clarification,
I guess i have to go ahead with the toedter code. And let me know if you could in the future help me out in this regard, because i an pretty new to the world of java.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JCalendar form sun
 
Similar Threads
main() method
Data Validation
how to make a calendar using Date, Calender and Data Class
How to make a calender
How to insert date values to database using java swings