The moose likes Swing / AWT / SWT / JFace and the fly likes Build a Calendar using Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply 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: 7059

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


[Donate a pint, save a life!] [How to ask questions]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 7059

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
Saloon Keeper

Joined: Oct 27, 2005
Posts: 17259

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

Joined: Jul 26, 2007
Posts: 7059

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
 
 
subject: Build a Calendar using Swing
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture