home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Sample.bin
/
Calendar1.java
< prev
next >
Wrap
Text File
|
1998-11-02
|
39KB
|
1,433 lines
/*
* Title: Calendar
* Type: Applet
* Source: Calendar.java
* Application Description: Display a calendar window with the
* month/year selected by the user. When a date is selected,
* a it is displayed in the scrolling text box at the top.
*
* Symantec Corporation.
*/
import java.awt.*;
import java.applet.*;
import java.util.Date;
import java.util.Hashtable;
import symantec.itools.awt.util.StatusScroller;
import symantec.itools.multimedia.ScrollingText;
import java.util.GregorianCalendar;
import java.util.Calendar;
public class Calendar1 extends Applet
{
//{{DECLARE_CONTROLS
java.awt.Panel dayPanel = new java.awt.Panel();
java.awt.Label sunLabel = new java.awt.Label();
java.awt.Label monLabel = new java.awt.Label();
java.awt.Label tueLabel = new java.awt.Label();
java.awt.Label wedLabel = new java.awt.Label();
java.awt.Label thursLabel = new java.awt.Label();
java.awt.Label friLabel = new java.awt.Label();
java.awt.Label satLabel = new java.awt.Label();
java.awt.Panel datePanel = new java.awt.Panel();
java.awt.Button button1 = new java.awt.Button();
java.awt.Button button2 = new java.awt.Button();
java.awt.Button button3 = new java.awt.Button();
java.awt.Button button4 = new java.awt.Button();
java.awt.Button button5 = new java.awt.Button();
java.awt.Button button6 = new java.awt.Button();
java.awt.Button button7 = new java.awt.Button();
java.awt.Button button8 = new java.awt.Button();
java.awt.Button button9 = new java.awt.Button();
java.awt.Button button10 = new java.awt.Button();
java.awt.Button button11 = new java.awt.Button();
java.awt.Button button12 = new java.awt.Button();
java.awt.Button button13 = new java.awt.Button();
java.awt.Button button14 = new java.awt.Button();
java.awt.Button button15 = new java.awt.Button();
java.awt.Button button16 = new java.awt.Button();
java.awt.Button button17 = new java.awt.Button();
java.awt.Button button18 = new java.awt.Button();
java.awt.Button button19 = new java.awt.Button();
java.awt.Button button20 = new java.awt.Button();
java.awt.Button button21 = new java.awt.Button();
java.awt.Button button22 = new java.awt.Button();
java.awt.Button button23 = new java.awt.Button();
java.awt.Button button24 = new java.awt.Button();
java.awt.Button button25 = new java.awt.Button();
java.awt.Button button26 = new java.awt.Button();
java.awt.Button button27 = new java.awt.Button();
java.awt.Button button28 = new java.awt.Button();
java.awt.Button button29 = new java.awt.Button();
java.awt.Button button30 = new java.awt.Button();
java.awt.Button button31 = new java.awt.Button();
java.awt.Button button32 = new java.awt.Button();
java.awt.Button button33 = new java.awt.Button();
java.awt.Button button34 = new java.awt.Button();
java.awt.Button button35 = new java.awt.Button();
java.awt.Button button36 = new java.awt.Button();
java.awt.Button button37 = new java.awt.Button();
java.awt.Button button38 = new java.awt.Button();
java.awt.Button button39 = new java.awt.Button();
java.awt.Button button40 = new java.awt.Button();
java.awt.Button button41 = new java.awt.Button();
java.awt.Button button42 = new java.awt.Button();
java.awt.Panel selPanel = new java.awt.Panel();
java.awt.Button rightButton = new java.awt.Button();
java.awt.TextField date = new java.awt.TextField();
java.awt.Button leftButton = new java.awt.Button();
symantec.itools.multimedia.ScrollingText scrollingTextDisplayDate = new symantec.itools.multimedia.ScrollingText();
//}}
Button myButton[]; // The calendar date buttons
boolean loaded = true;
Graphics textGC;
int thismonth; // App. variable
int thisyear; // App. variable
int days; // App. variable
int dayselected; // App. variable
GregorianCalendar dateSelected; // User-selected Date object
int buttonShift; // Used to determine what day the
// 1st of the month falls on
public void init()
{
// Take out this line if you don't use symantec.itools.net.RelativeURL or symantec.itools.awt.util.StatusScroller
symantec.itools.lang.Context.setApplet(this);
// This code is automatically generated by Visual Cafe when you add
// components to the visual environment. It instantiates and initializes
// the components. To modify the code, only use code syntax that matches
// what Visual Cafe can generate, or Visual Cafe may be unable to back
// parse your Java file into its visual environment.
//{{INIT_CONTROLS
setLayout(null);
setBackground(java.awt.Color.white);
setForeground(java.awt.Color.black);
setFont(new Font("Dialog", Font.PLAIN, 12));
setSize(421,369);
dayPanel.setLayout(new GridLayout(1,7,5,5));
add(dayPanel);
dayPanel.setBackground(java.awt.Color.lightGray);
dayPanel.setBounds(24,84,372,26);
sunLabel.setText("Sun");
sunLabel.setAlignment(java.awt.Label.CENTER);
dayPanel.add(sunLabel);
sunLabel.setBounds(0,0,48,26);
monLabel.setText("Mon");
monLabel.setAlignment(java.awt.Label.CENTER);
dayPanel.add(monLabel);
monLabel.setBounds(53,0,48,26);
tueLabel.setText("Tue");
tueLabel.setAlignment(java.awt.Label.CENTER);
dayPanel.add(tueLabel);
tueLabel.setBounds(106,0,48,26);
wedLabel.setText("Wed");
wedLabel.setAlignment(java.awt.Label.CENTER);
dayPanel.add(wedLabel);
wedLabel.setBounds(159,0,48,26);
thursLabel.setText("Thur");
thursLabel.setAlignment(java.awt.Label.CENTER);
dayPanel.add(thursLabel);
thursLabel.setBounds(212,0,48,26);
friLabel.setText("Fri");
friLabel.setAlignment(java.awt.Label.CENTER);
dayPanel.add(friLabel);
friLabel.setBounds(265,0,48,26);
satLabel.setText("Sat");
satLabel.setAlignment(java.awt.Label.CENTER);
dayPanel.add(satLabel);
satLabel.setBounds(318,0,48,26);
datePanel.setLayout(new GridLayout(6,7,1,1));
add(datePanel);
datePanel.setBounds(24,120,374,214);
button1.setActionCommand("button");
datePanel.add(button1);
button1.setBounds(0,0,52,34);
button2.setActionCommand("button");
datePanel.add(button2);
button2.setBounds(53,0,52,34);
button3.setActionCommand("button");
datePanel.add(button3);
button3.setBounds(106,0,52,34);
button4.setActionCommand("button");
datePanel.add(button4);
button4.setBounds(159,0,52,34);
button5.setActionCommand("button");
datePanel.add(button5);
button5.setBounds(212,0,52,34);
button6.setActionCommand("button");
datePanel.add(button6);
button6.setBounds(265,0,52,34);
button7.setActionCommand("button");
datePanel.add(button7);
button7.setBounds(318,0,52,34);
button8.setActionCommand("button");
datePanel.add(button8);
button8.setBounds(0,35,52,34);
button9.setActionCommand("button");
datePanel.add(button9);
button9.setBounds(53,35,52,34);
button10.setActionCommand("button");
datePanel.add(button10);
button10.setBounds(106,35,52,34);
button11.setActionCommand("button");
datePanel.add(button11);
button11.setBounds(159,35,52,34);
button12.setActionCommand("button");
datePanel.add(button12);
button12.setBounds(212,35,52,34);
button13.setActionCommand("button");
datePanel.add(button13);
button13.setBounds(265,35,52,34);
button14.setActionCommand("button");
datePanel.add(button14);
button14.setBounds(318,35,52,34);
button15.setActionCommand("button");
datePanel.add(button15);
button15.setBounds(0,70,52,34);
button16.setActionCommand("button");
datePanel.add(button16);
button16.setBounds(53,70,52,34);
button17.setActionCommand("button");
datePanel.add(button17);
button17.setBounds(106,70,52,34);
button18.setActionCommand("button");
datePanel.add(button18);
button18.setBounds(159,70,52,34);
button19.setActionCommand("button");
datePanel.add(button19);
button19.setBounds(212,70,52,34);
button20.setActionCommand("button");
datePanel.add(button20);
button20.setBounds(265,70,52,34);
button21.setActionCommand("button");
datePanel.add(button21);
button21.setBounds(318,70,52,34);
button22.setActionCommand("button");
datePanel.add(button22);
button22.setBounds(0,105,52,34);
button23.setActionCommand("button");
datePanel.add(button23);
button23.setBounds(53,105,52,34);
button24.setActionCommand("button");
datePanel.add(button24);
button24.setBounds(106,105,52,34);
button25.setActionCommand("button");
datePanel.add(button25);
button25.setBounds(159,105,52,34);
button26.setActionCommand("button");
datePanel.add(button26);
button26.setBounds(212,105,52,34);
button27.setActionCommand("button");
datePanel.add(button27);
button27.setBounds(265,105,52,34);
button28.setActionCommand("button");
datePanel.add(button28);
button28.setBounds(318,105,52,34);
button29.setActionCommand("button");
datePanel.add(button29);
button29.setBounds(0,140,52,34);
button30.setActionCommand("button");
datePanel.add(button30);
button30.setBounds(53,140,52,34);
button31.setActionCommand("button");
datePanel.add(button31);
button31.setBounds(106,140,52,34);
button32.setActionCommand("button");
datePanel.add(button32);
button32.setBounds(159,140,52,34);
button33.setActionCommand("button");
datePanel.add(button33);
button33.setBounds(212,140,52,34);
button34.setActionCommand("button");
datePanel.add(button34);
button34.setBounds(265,140,52,34);
button35.setActionCommand("button");
datePanel.add(button35);
button35.setBounds(318,140,52,34);
button36.setActionCommand("button");
datePanel.add(button36);
button36.setBounds(0,175,52,34);
button37.setActionCommand("button");
datePanel.add(button37);
button37.setBounds(53,175,52,34);
button38.setActionCommand("button");
datePanel.add(button38);
button38.setBounds(106,175,52,34);
button39.setActionCommand("button");
datePanel.add(button39);
button39.setBounds(159,175,52,34);
button40.setActionCommand("button");
datePanel.add(button40);
button40.setBounds(212,175,52,34);
button41.setActionCommand("button");
datePanel.add(button41);
button41.setBounds(265,175,52,34);
button42.setActionCommand("button");
datePanel.add(button42);
button42.setBounds(318,175,52,34);
selPanel.setLayout(null);
add(selPanel);
selPanel.setBounds(24,48,372,24);
rightButton.setLabel(">>>");
selPanel.add(rightButton);
rightButton.setBackground(java.awt.Color.lightGray);
rightButton.setBounds(288,0,38,26);
date.setEditable(false);
selPanel.add(date);
date.setBounds(132,0,120,24);
leftButton.setLabel("<<<");
selPanel.add(leftButton);
leftButton.setBackground(java.awt.Color.lightGray);
leftButton.setBounds(60,0,36,24);
try {
{
String[] tempString = new String[1];
tempString[0] = "Welcome to the JAVA Calender!!";
scrollingTextDisplayDate.setMessageList(tempString);
}
}
catch(java.beans.PropertyVetoException e) { }
scrollingTextDisplayDate.setEnabled(false);
add(scrollingTextDisplayDate);
scrollingTextDisplayDate.setBackground(java.awt.Color.blue);
scrollingTextDisplayDate.setForeground(java.awt.Color.white);
scrollingTextDisplayDate.setFont(new Font("Dialog", Font.BOLD, 12));
scrollingTextDisplayDate.setBounds(24,12,372,24);
//}}
//{{REGISTER_LISTENERS
SymMouse aSymMouse = new SymMouse();
rightButton.addMouseListener(aSymMouse);
leftButton.addMouseListener(aSymMouse);
button1.addMouseListener(aSymMouse);
button2.addMouseListener(aSymMouse);
button3.addMouseListener(aSymMouse);
button4.addMouseListener(aSymMouse);
button5.addMouseListener(aSymMouse);
button6.addMouseListener(aSymMouse);
button7.addMouseListener(aSymMouse);
button8.addMouseListener(aSymMouse);
button9.addMouseListener(aSymMouse);
button10.addMouseListener(aSymMouse);
button11.addMouseListener(aSymMouse);
button12.addMouseListener(aSymMouse);
button13.addMouseListener(aSymMouse);
button14.addMouseListener(aSymMouse);
button15.addMouseListener(aSymMouse);
button16.addMouseListener(aSymMouse);
button17.addMouseListener(aSymMouse);
button18.addMouseListener(aSymMouse);
button19.addMouseListener(aSymMouse);
button20.addMouseListener(aSymMouse);
button21.addMouseListener(aSymMouse);
button22.addMouseListener(aSymMouse);
button23.addMouseListener(aSymMouse);
button24.addMouseListener(aSymMouse);
button25.addMouseListener(aSymMouse);
button26.addMouseListener(aSymMouse);
button27.addMouseListener(aSymMouse);
button28.addMouseListener(aSymMouse);
button29.addMouseListener(aSymMouse);
button30.addMouseListener(aSymMouse);
button31.addMouseListener(aSymMouse);
button32.addMouseListener(aSymMouse);
button33.addMouseListener(aSymMouse);
button34.addMouseListener(aSymMouse);
button35.addMouseListener(aSymMouse);
button36.addMouseListener(aSymMouse);
button37.addMouseListener(aSymMouse);
button38.addMouseListener(aSymMouse);
button39.addMouseListener(aSymMouse);
button40.addMouseListener(aSymMouse);
button41.addMouseListener(aSymMouse);
button42.addMouseListener(aSymMouse);
//}}
}
/**
* Adds all the day buttons to an array
*/
public void SetButtonArray()
{
myButton = new Button[42];
myButton[0] = button1;
myButton[1] = button2;
myButton[2] = button3;
myButton[3] = button4;
myButton[4] = button5;
myButton[5] = button6;
myButton[6] = button7;
myButton[7] = button8;
myButton[8] = button9;
myButton[9] = button10;
myButton[10] = button11;
myButton[11] = button12;
myButton[12] = button13;
myButton[13] = button14;
myButton[14] = button15;
myButton[15] = button16;
myButton[16] = button17;
myButton[17] = button18;
myButton[18] = button19;
myButton[19] = button20;
myButton[20] = button21;
myButton[21] = button22;
myButton[22] = button23;
myButton[23] = button24;
myButton[24] = button25;
myButton[25] = button26;
myButton[26] = button27;
myButton[27] = button28;
myButton[28] = button29;
myButton[29] = button30;
myButton[30] = button31;
myButton[31] = button32;
myButton[32] = button33;
myButton[33] = button34;
myButton[34] = button35;
myButton[35] = button36;
myButton[36] = button37;
myButton[37] = button38;
myButton[38] = button39;
myButton[39] = button40;
myButton[40] = button41;
myButton[41] = button42;
}
/**
* Find out today's date and set up the calendar to display the correct
* month and year
*/
public void start()
{
SetButtonArray();
Date todaydate = new Date();
GregorianCalendar gc = new GregorianCalendar();
gc.setTime(todaydate);
setMonthString(gc);
setCalendar(gc);
}
/**
* Given a Date, set up the calendar elements to display the
* appropriate dates on the appropriate calendar buttons.
*/
private void setCalendar(GregorianCalendar c)
{
//clear calendar
for(int i = 0; i < 42; i++)
{
myButton[i].setLabel("");
}
int thisMo = c.get(java.util.Calendar.MONTH);
int thisDy = c.get(java.util.Calendar.DAY_OF_WEEK);
int thisYr = c.get(java.util.Calendar.YEAR);
//Find the day of the week of the first
GregorianCalendar gc = new GregorianCalendar(thisYr, thisMo, 1);
int dayoffirst = gc.get(java.util.Calendar.DAY_OF_WEEK);
buttonShift = dayoffirst;
int dayspermonth = getDaysPerMonth(thisMo);
for(int i = 1; i < dayspermonth+1; i++)
{
myButton[i+buttonShift-1].setLabel(Integer.toString(i));
}
}
/**
* Given a Date, set the text field to display it as a
* string containing the month and the year.
*/
private void setMonthString(GregorianCalendar gc)
{
thismonth = gc.get(java.util.Calendar.MONTH);
thisyear = gc.get(java.util.Calendar.YEAR);
String monthstring = getMonth(thismonth);
String temp = (monthstring +" ");
temp = temp + (Integer.toString(thisyear));
date.setText(temp);
}
/**
* Given the month number, returns a string containing the month.
*/
private String getMonth(int month)
{
String monthstring;
switch(month)
{
case 0:
monthstring = "January";
break;
case 1:
monthstring = "February";
break;
case 2:
monthstring = "March";
break;
case 3:
monthstring = "April";
break;
case 4:
monthstring = "May";
break;
case 5:
monthstring = "June";
break;
case 6:
monthstring = "July";
break;
case 7:
monthstring = "August";
break;
case 8:
monthstring = "September";
break;
case 9:
monthstring = "October";
break;
case 10:
monthstring = "November";
break;
case 11:
monthstring = "December";
break;
default:
monthstring = "Month";
break;
}
return monthstring;
}
/**
* Increments the calendar (both Mo/Yr text field and date buttons)
* to the next sequential month/year combination.
*/
private void incrementCalendar()
{
thismonth += 1;
if(thismonth > 12)
{
thismonth = 0;
thisyear += 1;
}
GregorianCalendar incDate = new GregorianCalendar(thisyear, thismonth, 1);
setMonthString(incDate);
setCalendar(incDate);
java.lang.String[] tempString = new java.lang.String[1];
tempString[0] = new java.lang.String(getMonth(thismonth)+ " " +(Integer.toString(thisyear)));
try
{
scrollingTextDisplayDate.setMessageList(tempString);
}
catch(java.beans.PropertyVetoException e) { }
}
/**
* Decrements the calendar (both Mo/Yr text field and date buttons)
* to the previous sequential month/year combination.
*/
private void decrementCalendar()
{
thismonth -= 1;
if(thismonth < 0)
{
thismonth = 11;
thisyear -= 1;
}
GregorianCalendar decDate = new GregorianCalendar(thisyear, thismonth, 1);
setMonthString(decDate);
setCalendar(decDate);
java.lang.String[] tempString = new java.lang.String[1];
tempString[0] = new java.lang.String(getMonth(thismonth)+ " " +(Integer.toString(thisyear)));
try
{
scrollingTextDisplayDate.setMessageList(tempString);
}
catch(java.beans.PropertyVetoException e) { }
}
/**
* Given a month (represented as an integer), return the
* number of days in that month (corrects for leap years).
*/
private int getDaysPerMonth(int m)
{
switch(m)
{
case 0:
days = 31;
break;
case 1:
//Correct for a leap year
int tempYear = thisyear;
if((tempYear % 4) == 0) // Could be leap
{
if((tempYear % 100) == 0 && // Centuries aren't
(tempYear % 400) != 0) // Except every 4th
days = 28;
else
days = 29;
break;
}
days = 28;
break;
case 2:
days = 31;
break;
case 3:
days = 30;
break;
case 4:
days = 31;
break;
case 5:
days = 30;
break;
case 6:
days = 31;
break;
case 7:
days = 31;
break;
case 8:
days = 30;
break;
case 9:
days = 31;
break;
case 10:
days = 30;
break;
case 11:
days = 31;
break;
default:
days = 31;
break;
}
return days;
}
/**
* return the date that was selected by pushing a button
* on the calendar
*/
private GregorianCalendar getDateSelected()
{
dateSelected = new GregorianCalendar(thisyear, thismonth, dayselected);
return dateSelected;
}
/**
* Given a date, set the scrolling text message
*/
private void displayBannerText(GregorianCalendar gc)
{
int tempMo = (gc.get(java.util.Calendar.MONTH)) + 1;
int tempYr = (gc.get(java.util.Calendar.YEAR));
int tempDy = (gc.get(java.util.Calendar.DAY_OF_MONTH));
java.lang.String[] tempString = new java.lang.String[1];
tempString[0] = new java.lang.String("You selected ");
tempString[0] += Integer.toString(tempMo);
tempString[0] += "/" + Integer.toString(tempDy);
tempString[0] += "/" + Integer.toString(tempYr);
try
{
scrollingTextDisplayDate.setMessageList(tempString);
}
catch(java.beans.PropertyVetoException e) { }
}
/**
* Handles mouse click on any day button
*/
void updateDate(Button button)
{
String label = button.getLabel();
if(label != "")
{
Integer tempInt = new Integer(label);
dayselected = tempInt.intValue();
dateSelected = getDateSelected();
displayBannerText(dateSelected);
}
}
class SymMouse extends java.awt.event.MouseAdapter
{
public void mouseClicked(java.awt.event.MouseEvent event)
{
Object object = event.getSource();
if (object == rightButton)
rightButton_MouseClicked(event);
else if (object == leftButton)
leftButton_MouseClicked(event);
else if (object == button1)
button1_MouseClicked(event);
else if (object == button2)
button2_MouseClicked(event);
else if (object == button3)
button3_MouseClicked(event);
else if (object == button4)
button4_MouseClicked(event);
else if (object == button5)
button5_MouseClicked(event);
else if (object == button6)
button6_MouseClicked(event);
else if (object == button7)
button7_MouseClicked(event);
else if (object == button8)
button8_MouseClicked(event);
else if (object == button9)
button9_MouseClicked(event);
else if (object == button10)
button10_MouseClicked(event);
else if (object == button11)
button11_MouseClicked(event);
else if (object == button12)
button12_MouseClicked(event);
else if (object == button13)
button13_MouseClicked(event);
else if (object == button14)
button14_MouseClicked(event);
else if (object == button15)
button15_MouseClicked(event);
else if (object == button16)
button16_MouseClicked(event);
else if (object == button17)
button17_MouseClicked(event);
else if (object == button18)
button18_MouseClicked(event);
else if (object == button19)
button19_MouseClicked(event);
else if (object == button20)
button20_MouseClicked(event);
else if (object == button21)
button21_MouseClicked(event);
else if (object == button22)
button22_MouseClicked(event);
else if (object == button23)
button23_MouseClicked(event);
else if (object == button24)
button24_MouseClicked(event);
else if (object == button25)
button25_MouseClicked(event);
else if (object == button26)
button26_MouseClicked(event);
else if (object == button27)
button27_MouseClicked(event);
else if (object == button28)
button28_MouseClicked(event);
else if (object == button29)
button29_MouseClicked(event);
else if (object == button30)
button30_MouseClicked(event);
else if (object == button31)
button31_MouseClicked(event);
else if (object == button32)
button32_MouseClicked(event);
else if (object == button33)
button33_MouseClicked(event);
else if (object == button34)
button34_MouseClicked(event);
else if (object == button35)
button35_MouseClicked(event);
else if (object == button36)
button36_MouseClicked(event);
else if (object == button37)
button37_MouseClicked(event);
else if (object == button38)
button38_MouseClicked(event);
else if (object == button39)
button39_MouseClicked(event);
else if (object == button40)
button40_MouseClicked(event);
else if (object == button41)
button41_MouseClicked(event);
else if (object == button42)
button42_MouseClicked(event);
}
}
void rightButton_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
rightButton_MouseClicked_Interaction1(event);
}
void rightButton_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
try {
this.incrementCalendar();
} catch (Exception e) {
}
}
void leftButton_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
leftButton_MouseClicked_Interaction1(event);
}
void leftButton_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
try {
this.decrementCalendar();
} catch (Exception e) {
}
}
void button1_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button1_MouseClicked_Interaction1(event);
}
void button1_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button2_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button2_MouseClicked_Interaction1(event);
}
void button2_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button3_MouseClicked(java.awt.event.MouseEvent event)
{
button3_MouseClicked_Interaction1(event);
}
void button3_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button4_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button4_MouseClicked_Interaction1(event);
}
void button4_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button5_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button5_MouseClicked_Interaction1(event);
}
void button5_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button6_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button6_MouseClicked_Interaction1(event);
}
void button6_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button7_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button7_MouseClicked_Interaction1(event);
}
void button7_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button8_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button8_MouseClicked_Interaction1(event);
}
void button8_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button9_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button9_MouseClicked_Interaction1(event);
}
void button9_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button10_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button10_MouseClicked_Interaction1(event);
}
void button10_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button11_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button11_MouseClicked_Interaction1(event);
}
void button11_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button12_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button12_MouseClicked_Interaction1(event);
}
void button12_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button13_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button13_MouseClicked_Interaction1(event);
}
void button13_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button14_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button14_MouseClicked_Interaction1(event);
}
void button14_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button15_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button15_MouseClicked_Interaction1(event);
}
void button15_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button16_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button16_MouseClicked_Interaction1(event);
}
void button16_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button17_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button17_MouseClicked_Interaction1(event);
}
void button17_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button18_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button18_MouseClicked_Interaction1(event);
}
void button18_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button19_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button19_MouseClicked_Interaction1(event);
}
void button19_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button20_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button20_MouseClicked_Interaction1(event);
}
void button20_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button21_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button21_MouseClicked_Interaction1(event);
}
void button21_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button22_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button22_MouseClicked_Interaction1(event);
}
void button22_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button23_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button23_MouseClicked_Interaction1(event);
}
void button23_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button24_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button24_MouseClicked_Interaction1(event);
}
void button24_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button25_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button25_MouseClicked_Interaction1(event);
}
void button25_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button26_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button26_MouseClicked_Interaction1(event);
}
void button26_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button27_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button27_MouseClicked_Interaction1(event);
}
void button27_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button28_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button28_MouseClicked_Interaction1(event);
}
void button28_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button29_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button29_MouseClicked_Interaction1(event);
}
void button29_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button30_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button30_MouseClicked_Interaction1(event);
}
void button30_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button31_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button31_MouseClicked_Interaction1(event);
}
void button31_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button32_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button32_MouseClicked_Interaction1(event);
}
void button32_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button33_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button33_MouseClicked_Interaction1(event);
}
void button33_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button34_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button34_MouseClicked_Interaction1(event);
}
void button34_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button35_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button35_MouseClicked_Interaction1(event);
}
void button35_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button36_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button36_MouseClicked_Interaction1(event);
}
void button36_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button37_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button37_MouseClicked_Interaction1(event);
}
void button37_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button38_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button38_MouseClicked_Interaction1(event);
}
void button38_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button39_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button39_MouseClicked_Interaction1(event);
}
void button39_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button40_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button40_MouseClicked_Interaction1(event);
}
void button40_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button41_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button41_MouseClicked_Interaction1(event);
}
void button41_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
void button42_MouseClicked(java.awt.event.MouseEvent event)
{
// to do: code goes here.
button42_MouseClicked_Interaction1(event);
}
void button42_MouseClicked_Interaction1(java.awt.event.MouseEvent event)
{
updateDate((Button)event.getComponent());
}
}