This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
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.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.