|
||||||
| Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I am an absolute beginner and need alot of help.
I have been set a task to display a calendar for any given month and year. I made a start with a book but I cant get what I need from it. So far I have used GregorianCalendar and I can display a calendar. I first thought it was todays date but it isn't it seems to be a random month and year. I need to be able to input a given month and year, and then display that. I keep doing so much wrong with this I need alot of guidence but any help or advice would be appreciated. Thanks. ![]() |
| Sponsored Links |
|
|
|
|||||
|
Have you looked at the JavaDoc's for this class? GregorianCalendar (Java 2 Platform SE v1.4.2)
If you can ask a more specific question, I will be able to give you more guidance.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||
|
Sorry, what is it that you need help with?
Creating a GregorianCalendar with a given month and year? If that is the case, the API shows the one constructor of GregorianCalendar as GregorianCalendar(int year, int month, int date) So, all you have to do is simply create a GregorianCalendar, passing in the year,month and if not needed, any date. I suppose you know how to handle user input? |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Beginners Guide To PHP: *Tutorial* | renlok | PHP Tutorials | 3 | 04-22-2008 03:20 PM |
| Forums for photoshop design and designers .. also for beginners? | navjeet | Computer Software/OS | 0 | 08-21-2007 12:29 AM |
| Problem with an exercise?? | A.N.H | Java Help | 2 | 04-29-2007 01:01 PM |
| A site for beginners in the Technology Field | littlefranciscan | Technology Ramble | 2 | 01-16-2007 07:52 AM |
| Google Calendar | Crane | Technology Ramble | 2 | 05-30-2006 10:08 AM |
| Xav | ........ | 1333.07 |
| MeTh0Dz|Reb0rn | ........ | 1055.7 |
| John | ........ | 881.37 |
| morefood2001 | ........ | 879.43 |
| marwex89 | ........ | 869.98 |
| WingedPanther | ........ | 851.68 |
| Brandon W | ........ | 757.44 |
| chili5 | ........ | 312.39 |
| Steve.L | ........ | 247.05 |
| dcs | ........ | 217.87 |
Goal: 100,000 Posts
Complete: 82%