Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying Graphical calendar !!

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'd like to know how to display a calendar. My requirement is like to show as many columns as my days are and if there is any my assignment starting on 2004-May-1, 09:30 and ends on 2004-May-3, 21:50 I should be able to see it graphically with exact time also(with some rectangle on the calendar). How should I write this kind of program. I already did it using JavaSwings which is not suitable for exact start and end time diplay. Can I do it using 2DGraphics ? or is there any other package in java?? Plz clarify me.

With Regards,
Narendranath
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I already did it using JavaSwings which is not suitable for exact start and end time diplay.

Why not?
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a class assignment, or a work assignment? If it's a class assignment, then you should take a closer look at the Swing and creating custom JPanels, overriding the paint to paint whatever you want (using Graphics2D).

If this is a work assignment, take a look at JFreeChart. While I've not used it myself, I know that it has the capabilities to display a Gantt Chart, which sounds to me like what you are describing. See if that suits your needs.
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I'll make it JFreeChart useful. Thanks guys !

Regards,
Narendranath
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic