Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2007, 09:07 PM
Member
 
Join Date: May 2007
Posts: 4
John is on a distinguished road
calendar
do you know any tool to do a nice calendar?
I am trying to do a calendar with code and... it is so hard.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-11-2007, 10:59 PM
Member
 
Join Date: Apr 2007
Location: Indiana
Posts: 84
pegitha is on a distinguished road
Send a message via Skype™ to pegitha
This is pretty nice:
SwingX: Introduction to the ...
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-12-2007, 09:08 AM
Senior Member
 
Join Date: Mar 2007
Posts: 136
goldhouse is on a distinguished road
Look I have done a calendar in SWT It is simple.
Logical Details .
Use the java Calendar Object.
Graphical Details.
I have 49 labels which are arranged in the grid layout 7x7.
important methods
createLabels();//draw labels
assignLabels();//Assign text to the date based on the month.
Use calendar roll method for the date and month change.
That is it
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-13-2007, 01:08 AM
Member
 
Join Date: May 2007
Posts: 39
Alan is on a distinguished road
I know a plugin call "jcalendar"
maybe it is that you are looking for
JCalendar Java Bean, a Java Date Chooser
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-25-2008, 10:56 PM
Member
 
Join Date: Jun 2008
Posts: 5
reginaldofsilva is on a distinguished road
perpetual calendar
Dude, try to develop your program from the logic of that code below, which I developed for work in my college.



Code:
import java.util .*; Import javax.swing.JOptionPane; Import static java.util.Calendar .*; Public Class perpetualcalendar ( public static void main (String [] args) ( int op = 0; while (op! = 2) ( op = Integer.parseInt (JOptionPane.showInputDialog (null, "JAVA PERPETUAL CALENDAR === === \ n" + "1 - Start \ n" + "2 - Exit")); if (op == 1) ( int day1 = Integer.parseInt (JOptionPane.showInputDialog (null, "Enter the desired day :")); int mon1 = Integer.parseInt (JOptionPane.showInputDialog (null, "Enter the desired months :")); int year1 = Integer.parseInt (JOptionPane.showInputDialog (null, "Between the years desired :")); Calendar lime = Calendar.getInstance (); cal.set (YEAR, year1); cal.set (MONTH, mon1); cal.set (DAY_OF_MONTH, day1); String [] = (days1 "," "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ); int dayweek = cal.get (DAY_OF_WEEK); JOptionPane.showMessageDialog (null, days1 [dayweek]); ) ) ) )
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 06-26-2008, 06:41 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,609
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
What's this code. Seems to me mixture with Java any something else From the class definition there are lots of errors I can see. Please check such codes before adding to the forum. Lots of errors I can pointed without testing this code pal.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 06-26-2008, 04:39 PM
Member
 
Join Date: Jun 2008
Posts: 5
reginaldofsilva is on a distinguished road
the code is correct, yes, you Eranga, you should learn a little more than Java and then yes criticize any code.

excuse anything!
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 06-26-2008, 06:26 PM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
I guess that code couldn't be compiled....

Based on the source code above,

Quote:
Import static java.util.Calendar .*;
unless you created/used other java api from third party vendors

I think Calendar is a java source code from src.zip file that can be found on jdk folder, not a folder....
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 06-27-2008, 06:25 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,609
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Quote:
Originally Posted by reginaldofsilva View Post
the code is correct, yes, you Eranga, you should learn a little more than Java and then yes criticize any code.

excuse anything!
Here comes another mad guy.

I challenge you, this is not a valid Java code. Can you take my challenge? Don't be a fool man, in your class there are hundreds of errors, which are not valid in Java. I'm not talking about any other language, because this is a Java forum too.

If you can take my challenge, replay to this post.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 06-27-2008, 05:06 PM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Hey eranga,

Stay calm....
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 06-28-2008, 06:07 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,609
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga


Hi sukatoa, I'm cool all the time. But read his post, if he doesn't know things exactly better to wait and listen to others. As I said I can show around 20 errors in that code. In that sense he said to me, learn Java.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #12 (permalink)  
Old 07-29-2008, 11:11 PM
Member
 
Join Date: Jun 2008
Posts: 5
reginaldofsilva is on a distinguished road
I use the NetBeans IDE and can compile the code normally.
Bookmark Post in Technorati
Reply With Quote
  #13 (permalink)  
Old 08-08-2008, 12:54 AM
Member
 
Join Date: Jul 2008
Posts: 3
BogdanNb is on a distinguished road
Quote:
Originally Posted by John View Post
do you know any tool to do a nice calendar?
I am trying to do a calendar with code and... it is so hard.
the best calendar you can get is the one from Nebula project(eclipse.org/nebula/widgets/calendarcombo/calendarcombo.php)
See this link and you will see other very interesting stuff about calendars and dates!!!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Calendar class JavaBean Java Tips 1 06-26-2008 05:09 PM
How to Show Calendar praveen.kb AWT / Swing 2 02-09-2008 10:23 AM
Calendar.DATE mew New To Java 1 01-04-2008 09:51 PM
Help with gregorian calendar osval New To Java 2 08-07-2007 01:21 AM
Web calendar Daniel Enterprise JavaBeans 1 06-27-2007 07:36 PM


All times are GMT +3. The time now is 09:23 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org