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

正文內(nèi)容

java課程設(shè)計(jì)報(bào)告_電子鐘日歷記事本(存儲版)

2025-04-12 02:32上一頁面

下一頁面
  

【正文】 Cut、 Paste 是 JmenuItem 創(chuàng)建的菜單項(xiàng),名字依次是“復(fù)制” , “剪切” , Java 語言與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì) 25 “黏貼”。 } public void showMonthCalendar(){ String [] a=()。 } public void setShowDayTextField(JTextField [] text){ showDay=text。j++){ title[j]=new JLabel()。 (new GridLayout(1,7))。 public class CalendarPad extends JPanel{ int year,month,day。 ( 2) 方法 1) CalendarPad()是構(gòu)造方法,用來創(chuàng)建 calendarPad 對象。 n++。(year%100!=0))||year%400==0) dayAmount=29。 Calendar rili=()。 } public void setMonth(int month){ if(month=12amp。 } } 日期 模塊設(shè)計(jì) 效果圖 類的主要成員變量和方法 ( 1) 成員變量 year, month, day 是 int 型數(shù)據(jù),它們的值分別確定年份、月份和日期。 String []dayFile = ()。 日歷記事本 18 try { int n = (str)。 } public void mouseReleased(MouseEvent e){} public void mouseEntered(MouseEvent e){} public void mouseExited(MouseEvent e){} public void mouseClicked(MouseEvent e){} public void focusGained(FocusEvent e) { Component = (Component)()。 doMark()。 (year)。 char a[] = ()。 } else if (()==previousMonth) { month。 doMark()。 (year,month,day)。 ()。 } } public void actionPerformed(ActionEvent e) { if(().equals(更 改圖片背景 )) { FileDialog dia=new FileDialog(this,選定圖片 ,)。 setDefaultCloseOperation()。 JPanel pSouth = new JPanel()。 (nextMonth)。 (this)。 ()。 JSplitPane splitV2 = new JSplitPane(,notePad,clock)。 (圖像 )。 ()。 month = ()+1。 showDay[i].addMouseListener(this)。 public CalendarWindow() { dir= new File(./dailyRecord)。 CalendarImage calendarImage。 import .*。 4) focusGained( FocusEvent)和 focusLost( FocusEvent)方法是 CalendarWindow類實(shí)現(xiàn)的 FocusListener 接口中的方法。這些按鈕都將當(dāng)前窗口注冊為自己的 ActionEvent事件監(jiān)視器。 3) calendarPad 是 CalendarPad 對象,該對象可以顯示與日期有關(guān)的數(shù)據(jù)。 ( 3) 當(dāng)某個(gè)日期有日志時(shí),在日歷表該日期的外觀上就會(huì)出現(xiàn)“ 有 ”標(biāo)記,表明這個(gè)日期有日志,當(dāng)用戶刪除某個(gè)日期的日志后,該日期的外觀上“ 有 ”標(biāo) 記 就會(huì)消失。 課程設(shè)計(jì)內(nèi)容和要求 設(shè)計(jì) GUI 界面的日歷記事本,系統(tǒng)將日歷和記事本結(jié)合在一起,可以方便地保存、查看日志,即在任何日期記載下有關(guān)內(nèi)容或查看某個(gè)日期記載的內(nèi)容。該日歷還可以在某年內(nèi)按月前月后翻動(dòng),當(dāng)鼠標(biāo)左鍵單擊“上月”按鈕時(shí) ,當(dāng)前日歷的月份將減一;當(dāng)鼠標(biāo)左鍵單擊“下月” 當(dāng)前日歷表的月份將加一。 ( 5) 可以為日歷更改自己喜愛的 圖片。 5) showYear 和 showMonth 是 JtextField 類創(chuàng)建的文本框,用來顯示年月。 ( 2) 方法 1) CalendarWindow()是構(gòu)造方法,負(fù)責(zé)完成窗口初始化。 6) main 方法是程序運(yùn)行的入口方法 [3]。 CalendarMessage calendarMessage。 Clock clock。 for(int i=0。 calendarPad = new CalendarPad()。 (month)。 picturename=getPicture_address()。 (menusetting)。 showYear = new JTextField(+year,6)。 nextMonth = new JButton(下月 )。 (previousYear)。 日歷記事本 12 deleteDailyRecord = new JButton(刪除日志 )。 (readDailyRecord)。 ObjectInputStream outTwo=new ObjectInputStream(outOne)。 //將取得的內(nèi)容存入 “”文件中,下次打開軟件時(shí)還能記住上次的圖片路徑的選擇; if((()!=null)amp。//將獲得路徑傳給圖片,顯示該路徑指定的圖片 } } if(()==nextYear) { year++。 (+year)。 (+month)。 (calendarMessage)。i 。 (year,month,day)。 } } public void mousePressed(MouseEvent e) { JTextField text = (JTextField)()。 (backColor)。 ()。k。 3) setDay( int)和 getDay()方法分別用來設(shè)置和獲取 day 的值?!?30”。 else =1。 int dayAmount=0。i星期幾 。i++ ) day[i]= 。 4) showMonthCalendar()方法負(fù)責(zé)顯示“日歷” [4]。 Java 語言與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì) 23 JLabel title []。 add(center,)。 title[j].setHorizontalAlignment()。i++){ showDay[i].setFont(new Font(TimesRoman,15))。i++) showDay[i].setText(a[i])。 7) labl 是 JLabel 創(chuàng)建的標(biāo)簽,叫做“事件發(fā)生時(shí)間( hh: mm)”。 class NotePad extends JPanel implements ActionListener,MouseListener,ItemListener { JPopupMenu popup。 String Size[]={10,12,14,16,18,20,22,24,26,28,30,32,34,36}。 btn=new JButton(顏色 )。i。 ((,))。 //(btn)。 add(p2,)。 (this)。 } if(()==paste) { paste()。 } public void mouseReleased(MouseEvent e) Java 語言與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì) 29 { if(()==) { (ta,(),())。 } public void savefile(File dir,int year,int month,int day) 日歷記事本 30 { String dailyRecord=()++()+。 break。 ()。 ()。i。 } } else { (this,+year+年 +month+月 +day+日無日志!,消息對話框 ,)。 break。 } ()。 Toolkit tool。 (image,0,0,w,h,this)。 import .*。 int hour,minute,second。 minuteLine=new (0,0,0,0)。 //12 點(diǎn)分針位置 pointMY[0]=(height/2*4/5)。 pointMX[i+1]=pointMX[i]*(angle)(angle)*pointMY[i]。 pointMX[i]=pointMX[i]+width/2。i++){ //繪制表盤上的小刻度和大刻度 int m=(int)pointSX[i]。 } } 日歷記事本 40 else{ int k=2。 (mk/2,nk/2,k,k)。 } } public void paintComponent(Graphics g){ (g)。 } for(int i=0。 //刻度為 6 度 for(int i=0。 height=getBounds().height。 Clock(){ setBackground()。 import .*。每個(gè)時(shí)刻為 6176。//得到圖像文件; } catch (Exception eeee) { } repaint()。 import .*。 FileReader inOne=new FileReader(file)。 boolean b=false。 if(n==) { try { String fileName=+year++month++day+.txt。 } } public void deletefile(File dir,int year,int month,int day) { String key=+year++month++day。 FileWriter fw=new FileWriter(file)。 long end=()。 boolean b=false。 } public void copy() { ()。 String name=()。 ()。 (this)。 add(ShowMessage,)。 (copy)。i++) { (Size[i])。 list2=new Choice()。 ta=new JTextArea(5,20)。 JPanel p1,p2,p3。 主要程序代碼 import .*。 3) popup 是 JpopupMenu 創(chuàng)建的彈出式菜單。 日歷記事本 24 } } public void setCalendarMessage(CalendarMessage calendarMessage){ =calendarMessage。 title[6].setForeground()。j7。 north=new JPanel()。 import .*。 4) “星期”是 String 數(shù)組,單元的值依次為“ SUN 日”、“ MON 一”、“ TUE 二”、“ WED 三”、“ THU 四”、“ FRI 五”、“ SAT 六”。i++){ day[i]=(n)。amp。 } public String [] getMonthCalendar(){
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1