This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Build a Calendar using Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Build a Calendar using Swing " Watch "Build a Calendar using Swing " New topic
Author

Build a Calendar using Swing

Renjith mohanan
Ranch Hand

Joined: Jun 19, 2009
Posts: 52
Hi friends,
I am new in Java Swing Programming.

I need to build a calendar (especially for date picker) using swing.

Do any one have an idea, please help me.......................



Thanks In advance.
Renjith M


Personal E-mail: kalliyoorrenjith@gmail.com
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10744
    
    9

"Renjith tvm",
Please check your private messages for an important administrative matter.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10744
    
    9

Check out the GregorianCalendar class. You will find it useful for all kinds of stuff such as finding out the days in a particular month, day date relation etc.
You will need a panel with a grid layout to emulate the calendar layout. You can add labels/buttons to this grid, depending on your functionality.
Renjith mohanan
Ranch Hand

Joined: Jun 19, 2009
Posts: 52
Thanks Maneesh,
But I think it will take time to build such a calendar from scratch. I want to use this calendar in other pages also.
Do you have any built-in programs or JCalendar, something to do my work as fast as possible.

Renjith
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20077
    
  30

T.V.M Renjith wrote:or JCalendar

If you search Google for that exact word, you will find what you're looking for.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10744
    
    9

T.V.M Renjith wrote:But I think it will take time to build such a calendar from scratch. I want to use this calendar in other pages also.


I thought you said you wanted to build it
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Build a Calendar using Swing
 
It's not a secret anymore!