freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java萬年歷課程設(shè)計(jì)(編輯修改稿)

2024-10-08 08:41 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 Container con=getContentPane()。 JSplitPane split=new JSplitPane(,RightPane,LeftPane)。//gai bian (split,)。 ()。 //add CenterPane to notepad //CenterPane initialize setFont(new Font(Times New Roman,12))。 沈 陽 大 學(xué) 課程 設(shè)計(jì)說明書 JScrollPane scrollpane = new JScrollPane(CenterText)。 (new Dimension(220,250))。 (scrollpane)。 //init randomaccessfile } //switch the month in english public void SwitchMonth(int month) { switch(month) { case 1: SwitchMonth=Jan。break。 case 2: SwitchMonth=Feb。break。 case 3: SwitchMonth=Mar。break。 case 4: SwitchMonth=Apr。break。 case 5: SwitchMonth=May。break。 case 6: SwitchMonth=Jun。break。 case 7: SwitchMonth=Jul。break。 case 8: SwitchMonth=Aug。break。 case 9: SwitchMonth=Sep。break。 case 10: SwitchMonth=Qct。break。 case 11: SwitchMonth=Nov。break。 case 12: SwitchMonth=Dec。break。 } } //print the body of the month public void PrintMonth(int year,int month,int day) { //Get start day of the week for the first date in the month int startday = GetStartDay(year,month)。 沈 陽 大 學(xué) 課程 設(shè)計(jì)說明書 //Get number of days in the month int dayinmonth = GetNumOfDaysInMonth(year,month)。 //Print header //PrintTitleAndScreen()。 //Print body PrintMonthBody(startday,dayinmonth,day)。 } //PrintMonth(int year,int month,int day)39。s burden public void PrintMonth(int year,int month) { //Get start day of the week for the first date in the month int startday = GetStartDay(year,month)。 //Get number of days in the month int dayinmonth = GetNumOfDaysInMonth(year,month)。 //Print header //Print body PrintMonthBody(startday,dayinmonth)。 } //PrintMonthBody(int startday,int dayinmonth,int day)39。s burden public void PrintMonthBody(int startday,int dayinmonth) { for(int i=startday,n=1。istartday+dayinmonth。i++) { ShowDays[i].setText(+n)。 ShowDays[i].setHorizontalAlignment(0)。//let center if(n==day) { ShowDays[i].setForeground()。 ShowDays[i].setFont(new Font(TimesRoman,20))。 ShowDays[i].setBackground()。 } else { ShowDays[i].setFont(new Font(TimesRoman,12))。 ShowDays[i].setForeground()。 ShowDays[i].setBackground()。 } n++。 } for(int i=0。istartday。i++) { 沈 陽 大 學(xué) 課程 設(shè)計(jì)說明書 ShowDays[i].setText()。 ShowDays[i].setBackground()。 } for(int i=startday+dayinmonth。i42。i++) { ShowDays[i].setText()。 ShowDays[i].setBackground()。 } } //judge leapyear is or not public boolean IsLeapYear(int year) { if((year%400==0)||(year%4==0amp。amp。year%100!=0)) return true。 else return false。 } //judge the start day of a month public int GetStartDay(int year,int month) { //get total number of day since1/1/0000 int startday0001=32768。 long totalnumofdays=GetTotalNumOfDays(year,month)。 //return the start day return (int)((totalnumofdays+startday0001)%7)。 } //judge the days of a year public long GetTotalNumOfDays(int year,int month) { long total=0。 //get the total days from 32767 to year for(int i=32767。iyear。i++) { if(IsLeapYear(i)) total=total+366。 else total=total+365。 } //Add days from jan to the month prior to the calendar month for(int i=1。imonth。i++) total=total+GetNumOfDaysInMonth(year,i)。 沈 陽 大 學(xué) 課程 設(shè)計(jì)說明書 return total。 } //judge the days of a month public int GetNumOfDaysInMonth(int year,in
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1