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

正文內(nèi)容

java課程設(shè)計(jì)萬年歷程序設(shè)計(jì)報(bào)告(編輯修改稿)

2024-09-10 21:18 本頁面
 

【文章內(nèi)容簡介】 Field(2004, 5)。 //顯示年份的文本域 Choice monthChoice = new Choice()。 //月份選擇下拉框 Button btUpdate = new Button(更新)。 //更新按鈕 GregorianCalendar calendar=new GregorianCalendar()。 //日歷對象 Font smallFont = new Font(TimesRoman, , 15)。 //顯示小字體 Font bigFont = new Font(TimesRoman, , 50)。 //顯示大字體 String days[] = {星期日, 星期一, 星期二, 星期三,星期四, 星期五, 星期六}。 String months[] = {一月, 二月, 三月, 四月,五月, 六月, 七月, 八月, 九月,十月, 十一月, 十二月}。 int daysInMonth[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}。 //每個月的天數(shù) int searchMonth,searchYear。 //查詢的年份及月份 public void init(){ setBackground()。 //設(shè)置背景顏色 searchMonth = ()。 //得到系統(tǒng)年份 searchYear = ()。 //得到系統(tǒng)月份 add(new Label( 年:))。 //增加組件到Applet ((searchYear))。 //設(shè)置文本域文字 add(tfYear)。 add(new Label( 月:))。 (smallFont)。 //設(shè)置月份選擇下拉框的顯示字體 for (int i = 0。 i 12。 i++) { (months[i])。 //增加下拉框選項(xiàng) } (searchMonth)。 //設(shè)置下拉框當(dāng)前選擇項(xiàng) add(monthChoice)。 add(btUpdate)。 int ponentCount=()。 //得到Applet中的組件數(shù)量 for (int i=0。iponentCount。i++){ getComponent(i).setFont(smallFont)。 //設(shè)置所有組件的顯示字體 } } public void paint(Graphics g){ FontMetrics fontMetric。 //顯示字體的FontMetrics對象 int fontAscent。 int dayPos。 int totalWidth, totalHeight。 //總的寬度,高度 int numRows。 //行數(shù) int xNum, yNum。 //水平和垂直方向單元格數(shù)量 int numDays。 String dayStr。 //顯示天數(shù)字符串 int margin。 ()。 //設(shè)置當(dāng)前顏色 (bigFont)。 //設(shè)置當(dāng)前使用字體 (searchYear+年,60,TOP+70)。 //繪制字符串 ((searchMonth+1)+月,200,TOP+130)。 ()。 (smallFont)。 fontMetric = ()。 //獲取變量初值 fontAscent = ()。 dayPos = TOP + fontAscent / 2。 totalWidth
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1