do you know any tool to do a nice calendar?
I am trying to do a calendar with code and... it is so hard.
Printable View
do you know any tool to do a nice calendar?
I am trying to do a calendar with code and... it is so hard.
This is pretty nice:
SwingX: Introduction to the ...
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
I know a plugin call "jcalendar"
maybe it is that you are looking for
JCalendar Java Bean, a Java Date Chooser
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]);
)
)
)
)
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.
the code is correct, yes, you Eranga, you should learn a little more than Java and then yes criticize any code.
excuse anything!
I guess that code couldn't be compiled....
Based on the source code above,
unless you created/used other java api from third party vendorsQuote:
Import static java.util.Calendar .*;
I think Calendar is a java source code from src.zip file that can be found on jdk folder, not a folder....
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.
Hey eranga,
Stay calm.... :)
:)
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.
I use the NetBeans IDE and can compile the code normally.