Results 1 to 13 of 13

Thread: calendar

  1. #1
    John is offline Member
    Join Date
    May 2007
    Posts
    4
    Rep Power
    0

    Default 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.

  2. #2
    pegitha is offline Member
    Join Date
    Apr 2007
    Location
    Indiana
    Posts
    83
    Rep Power
    0

    Default

    This is pretty nice:
    SwingX: Introduction to the ...

  3. #3
    goldhouse is offline Senior Member
    Join Date
    Mar 2007
    Posts
    134
    Rep Power
    0

    Default

    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

  4. #4
    Alan is offline Member
    Join Date
    May 2007
    Posts
    39
    Rep Power
    0

    Default

    I know a plugin call "jcalendar"
    maybe it is that you are looking for
    JCalendar Java Bean, a Java Date Chooser

  5. #5
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    0

    Default perpetual calendar

    Dude, try to develop your program from the logic of that code below, which I developed for work in my college.



    Java 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]);
         )
    )
         )
    )

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    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.

  7. #7
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    0

    Default

    the code is correct, yes, you Eranga, you should learn a little more than Java and then yes criticize any code.

    excuse anything!

  8. #8
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    I guess that code couldn't be compiled....

    Based on the source code above,

    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....
    freedom exists in the world of ideas

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    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.:mad:

    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.

  10. #10
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    Hey eranga,

    Stay calm.... :)
    freedom exists in the world of ideas

  11. #11
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    :)

    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.

  12. #12
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    0

    Default

    I use the NetBeans IDE and can compile the code normally.

  13. #13
    BogdanNb is offline Member
    Join Date
    Jul 2008
    Posts
    3
    Rep Power
    0

    Default

    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!!!

Similar Threads

  1. How to use Calendar class
    By JavaBean in forum Java Tip
    Replies: 1
    Last Post: 06-26-2008, 03:09 PM
  2. How to Show Calendar
    By praveen.kb in forum AWT / Swing
    Replies: 2
    Last Post: 02-09-2008, 08:23 AM
  3. Calendar.DATE
    By mew in forum New To Java
    Replies: 1
    Last Post: 01-04-2008, 07:51 PM
  4. Help with gregorian calendar
    By osval in forum New To Java
    Replies: 2
    Last Post: 08-06-2007, 11:21 PM
  5. Web calendar
    By Daniel in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 06-27-2007, 05:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •