|
import java.awt.*;
import java.applet.Applet;
import javax.swing.*;
import java.awt.event.*;
public class Calendar extends Applet
{
int Year=0;
int a=0;
int b=0, c=0;
int StartOfDay=0;
int Month=0;
int Day=0;
String Holder="";
int DaysInMonth[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
String ArrMonths[]=
{
"\nJanuary",
"\nFebruary",
"\nMarch",
"\nApril",
"\nMay",
"\nJune",
"\nJuly",
"\nAugust",
"\nSeptember",
"\nOctober",
"\nNovember",
"\nDecember"
};
JLabel lblInput= new JLabel("Input year:");
JTextField txtInput= new JTextField("2012",4);
JLabel[] lbl1= new JLabel[12];
JButton btnOk=new JButton("OK");
}
sir .. can you help me ..
There was no error . but when i try to run file .. it failed to initialize . I just want to have a calendar in Java for our finals .. I think its not really difficult .. so i choose this proposal. thanks .. I hop you help me guys
NOTE: Sorry guys it was my first time to do java .. so please don't laugh at me .. LOL
|
|
|
|
|
You have not added any actual code to this to do anything. I suggest you work through this tutorial[^].
|
|
|
|
|
Sir ... I dont really have Idea .. Is it possible to do a calendar in applet ? . just a simple calendar ? ..
|
|
|
|
|
mobi35 wrote: I dont really have Idea Then go and work through the tutorial that I gave you a link for.
|
|
|
|
|
i appreciate ur knowledge pa...
my suggestion is use browser code or (html) code to invoke applet into browser..try it..my dear friend...
|
|
|
|