File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
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: 10451
    
    8

"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: 10451
    
    8

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: 19719
    
  20

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
How To Ask Questions How To Answer Questions
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Build a Calendar using Swing