用戶確認(rèn)測試報(bào)告模板2200字_第1頁
用戶確認(rèn)測試報(bào)告模板2200字_第2頁
用戶確認(rèn)測試報(bào)告模板2200字_第3頁
用戶確認(rèn)測試報(bào)告模板2200字_第4頁
用戶確認(rèn)測試報(bào)告模板2200字_第5頁
已閱讀5頁,還剩78頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

用戶確認(rèn)測試報(bào)告模板2200字

項(xiàng)目名稱:用戶確認(rèn)測試報(bào)告項(xiàng)目名稱確認(rèn)測試報(bào)告XXXXX公司版權(quán)所有違者必究項(xiàng)目名稱:用戶確認(rèn)測試報(bào)告文件修改記錄項(xiàng)目名稱:用戶確認(rèn)測試報(bào)告目錄11.1引言...........................................................................................................................................................1背景...................................................................................................................................................1計(jì)劃安排...................................................................................................................................................2.4測試人員...........................................................................................................................................1測試環(huán)境...........................................................................................................................................1測試依據(jù)...........................................................................................................................................1需求概述...........................................................................................................................................1測試項(xiàng)目...................................................................................................................................................233.1模塊名稱...........................................................................................................................................2測試結(jié)論...................................................................................................................................................344.14.2總體意見...........................................................................................................................................3測試方簽字.......................................................................................................................................3項(xiàng)目名稱:用戶確認(rèn)測試報(bào)告1背景說明項(xiàng)目的背景,一般參照項(xiàng)目需求說明書進(jìn)行2計(jì)劃安排2.1測試人員說明參與測試的人員及部門,如:2.2測試環(huán)境軟件資源:硬件資源:網(wǎng)絡(luò)資源:2.3測試依據(jù)列出項(xiàng)目的需求文檔名稱,或者是標(biāo)書等2.4需求概述以列表的形式概述系統(tǒng)的功能。確認(rèn)測試報(bào)告1項(xiàng)目名稱:用戶確認(rèn)測試報(bào)告3測試項(xiàng)目3.1模塊名稱項(xiàng)目名稱:用戶確認(rèn)測試報(bào)告4測試結(jié)論4.1總體意見4.2測試方簽字XXXXXX:日期:XXXXX:日期:

第二篇:設(shè)計(jì)報(bào)告模板27300字Java與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)報(bào)告(2015--2016年度第1學(xué)期)日歷記事本專業(yè)計(jì)算機(jī)科學(xué)與技術(shù)朱浩M計(jì)算機(jī)1221251404214許秋艷20xx年11月11日學(xué)生姓名班學(xué)級號指導(dǎo)教師完成日期目錄1概述.........................................................................................................................11.1課程設(shè)計(jì)目的..........................................................................................................11.2課程設(shè)計(jì)內(nèi)容..........................................................................................................12系統(tǒng)需求分析.................................................................................................................12.1系統(tǒng)目標(biāo)..................................................................................................................12.2主體功能..................................................................................................................12.3開發(fā)環(huán)境..................................................................................................................13系統(tǒng)概要設(shè)計(jì)...............................................................................................................13.1系統(tǒng)的功能模塊劃分..............................................................................................13.2系統(tǒng)流程圖..............................................................................................................14系統(tǒng)詳細(xì)設(shè)計(jì)...............................................................................................................24.1日期改變模塊設(shè)計(jì)..................................................................................................24.2日期顯示模塊設(shè)計(jì)..................................................................................................24.3圖片顯示模塊設(shè)計(jì)..................................................................................................24.4日志顯示模塊設(shè)計(jì)..................................................................................................24.5時(shí)鐘顯示模塊設(shè)計(jì)..................................................................................................24.6保存讀取刪除日志模塊設(shè)計(jì)..................................................................................25測試...............................................................................................................................35.1測試方案..................................................................................................................35.2測試結(jié)果..................................................................................................................36小結(jié)...............................................................................................................................1參考文獻(xiàn)..........................................................................................................................2附錄............................................................................................................................3附錄1源程序清單..........................................................................................................3附錄1.1系統(tǒng)主窗口模塊源程序...................................................................................3附錄1.2日歷記事本模塊源程序...................................................................................6附錄1.3圖片顯示模塊源程序.......................................................................................7附錄1.4日歷主體日期模塊源程序...............................................................................8附錄1.5記事本模塊源程序...........................................................................................8附錄1.6時(shí)鐘模塊源程序.............................................................................................11Java與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)報(bào)告(2015)日歷記事本1概述1.1課程設(shè)計(jì)目的1)鞏固和提高java編程技術(shù)。2)培養(yǎng)掌握成學(xué)設(shè)計(jì)的基本思路和方法。3)加強(qiáng)研發(fā)、調(diào)試程序的能力。4)增強(qiáng)分析、解決問題的能力。5)提高科技論文寫作能力。1.2課程設(shè)計(jì)內(nèi)容設(shè)計(jì)GUI界面的日歷記事本。系統(tǒng)將日歷、記事本功能結(jié)合在一起,用戶可以方便地在任何日期記錄下有關(guān)內(nèi)容或查看某個(gè)日期的記錄內(nèi)容。2系統(tǒng)需求分析2.1系統(tǒng)目標(biāo)1.系統(tǒng)界面的左側(cè)是日歷。該日歷可以按年份前后翻動(dòng),鼠標(biāo)單擊“上年”按鈕時(shí),當(dāng)前的日歷的年份減一;當(dāng)鼠標(biāo)左鍵單擊“下年”按鈕,當(dāng)前日歷年份加一。2.該日歷也可以在某年內(nèi)按月前后翻動(dòng),鼠標(biāo)單擊“上月”按鈕時(shí),當(dāng)前的日歷的月份減一;當(dāng)鼠標(biāo)左鍵單擊“下月”按鈕,當(dāng)前日歷月份加一。3.使用鼠標(biāo)左鍵單擊選定的日期,如已有記錄內(nèi)容,系統(tǒng)將彈出對話框提示該日已有記錄內(nèi)容,并詢問用戶是否用記事本顯示該內(nèi)容。2.2主體功能用戶可以方便地在任何日期記錄下有關(guān)內(nèi)容或查看某個(gè)日期的記錄內(nèi)容。通過按按鈕“上年”和“下年”對年份進(jìn)行翻頁。通過按按鈕“上月”和“下月”對月份進(jìn)行翻頁。用戶可以通過輸入年份來查看自己的日志。2.3開發(fā)環(huán)境WindowsXP;jdk1.5.0-0-05;UltraEdit開發(fā)工具3系統(tǒng)概要設(shè)計(jì)3.1系統(tǒng)的功能模塊劃分本日歷記事本共有6個(gè)java源文件。3.2系統(tǒng)流程圖CalendarWindow.java該文件創(chuàng)建動(dòng)態(tài)日歷記事本的主窗口,該類含有main方法,是程序的入口程序,CalenderWindow類的成員變量中有5種重要類型的對象:CalendarPad,CalendarImage,CalendarMessage,NotePad,Clock對象。CalendarPad.java1日歷記事本系統(tǒng)的設(shè)計(jì)該文件生成的類負(fù)責(zé)創(chuàng)建本日歷記事本程序主窗口。負(fù)責(zé)顯示和修改CalendarMessage對象中的日期數(shù)據(jù)。CalendarImage.java該文件所創(chuàng)建的對象是CalendarWindow類的成員之一,負(fù)責(zé)繪制和插入圖象。CalendarMessage.java該文件負(fù)責(zé)創(chuàng)建管理年月日等主體功能的類對象。NotePad.java該文件負(fù)責(zé)創(chuàng)建讀取和保存日志。Clock.java該文件負(fù)責(zé)創(chuàng)建使用記事本實(shí)時(shí)顯示。流程圖如下:4系統(tǒng)詳細(xì)設(shè)計(jì)此次設(shè)計(jì)共有以下幾個(gè)模塊。4.1日期改變模塊設(shè)計(jì)點(diǎn)擊“上年”可以減少一年,點(diǎn)擊“下年”可以增加一年,多次點(diǎn)擊可改變多年。點(diǎn)擊“上月”可以減少一月,點(diǎn)擊“下月”可以增加一月,多次點(diǎn)擊可改變多月。4.2日期顯示模塊設(shè)計(jì)顯示所在年份月份的所有日期以及時(shí)間,并在記載有日志的日期的左上角顯示“有”標(biāo)記,沒有日志的日期則沒有任何標(biāo)記。4.3圖片顯示模塊設(shè)計(jì)使設(shè)計(jì)界面更加美觀大方。4.4日志顯示模塊設(shè)計(jì)界面右側(cè)上半部分的文本框中,可以選擇記載日志,讀取某日的日志也可在此顯示。4.5時(shí)鐘顯示模塊設(shè)計(jì)以傳統(tǒng)時(shí)鐘模式顯示當(dāng)前時(shí)間。4.6保存讀取刪除日志模塊設(shè)計(jì)可以對所寫日志進(jìn)行保存讀取和刪除操作。2Java與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)報(bào)告(2015)5測試5.1測試方案1.打開主界面,鼠標(biāo)左鍵點(diǎn)擊,查看日歷界面。2.選定一個(gè)日期寫日志。3.對日歷添加,刪除日志。4.修改年份,查看一些日志。5.2測試結(jié)果1.打開主界面,鼠標(biāo)左鍵點(diǎn)擊,查看日歷界面。如圖2.下圖為選擇的在20xx年11月11日寫的日志:3日歷記事本系統(tǒng)的設(shè)計(jì)3.保存刪除日志,如圖:4Java與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)報(bào)告(2015)6小結(jié)經(jīng)過幾天的努力,基本上完成了我的java課程設(shè)計(jì),也基本上實(shí)現(xiàn)了我在需求分析時(shí)所預(yù)料的功能。通過這次的課程設(shè)計(jì),將我從課本上學(xué)到的理論知識用到了實(shí)踐上,從而進(jìn)一步鞏固和豐富了我所學(xué)過的知識,也讓我更深層次的認(rèn)識了java及其功能的強(qiáng)大。同時(shí)做這門課程設(shè)計(jì)也進(jìn)一步加強(qiáng)了我的動(dòng)手能力。為了完成好這次課程設(shè)計(jì),做了較多的準(zhǔn)備,上網(wǎng)查閱了好多的相關(guān)資料,也翻閱了許多的相關(guān)的書籍。在這些過程中也無形的鍛煉了我的思維分析、遇到問題及想方設(shè)法通過各種偶那個(gè)途徑解決問題的能力。從理論到實(shí)踐,在整整幾天的日子里,可以說得是苦多于甜,但是可以學(xué)到很多很多的的東西,同時(shí)不僅可以鞏固了以前所學(xué)過的知識,而且學(xué)到了很多在書本上所沒有學(xué)到過的知識。通過這次課程設(shè)計(jì)使我懂得了理論與實(shí)際相結(jié)合是很重要的,只有理論知識是遠(yuǎn)遠(yuǎn)不夠的,只有把所學(xué)的理論知識與實(shí)踐相結(jié)合起來,從理論中得出結(jié)論,才能真正為社會(huì)服務(wù),從而提高自己的實(shí)際動(dòng)手能力和獨(dú)立思考的能力。在設(shè)計(jì)的過程中遇到問題,可以說得是困難重重,這畢竟第一次做的,難免會(huì)遇到過各種各樣的問題,同時(shí)在設(shè)計(jì)的過程中發(fā)現(xiàn)了自己的不足之處,對以前所學(xué)過的知識理解得不夠深刻,掌握得不夠牢固,所以我們一定要好好學(xué)習(xí)理論知識,為以后的實(shí)踐打下良好的基礎(chǔ)。通過這次課程設(shè)計(jì),我收獲的不僅僅是課本上的知識的實(shí)際應(yīng)用,還有編程的基本習(xí)慣和開發(fā)系統(tǒng)是應(yīng)注意的流程。1日歷記事本系統(tǒng)的設(shè)計(jì)參考文獻(xiàn)[1]耿祥義,張躍平.Java2實(shí)用教程(第三版)[M].北京:清華大學(xué)出版社,2006[2]耿祥義.Java課程設(shè)計(jì)(第三版)[M].北京:清華大學(xué)出版社,2004[3]張躍平.Java2實(shí)用教程實(shí)驗(yàn)指導(dǎo)與習(xí)題解答(第三版)[M].北京:清華大學(xué)出版社,20042Java與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)報(bào)告(2015)附錄附錄1源程序清單附錄1.1系統(tǒng)主窗口模塊源程序CalendarWindow.javaimportjavax.swing.*;importjava.awt.*;importjava.awt.event.*;importjava.util.*;importjava.io.*;publicclassCalendarWindowextendsJFrameimplementsActionListener,MouseListener,FocusListener{intyear,month,day;CalendarMessagecalendarMessage;CalendarPadcalendarPad;NotePadnotePad;JTextFieldshowYear,showMonth;JTextField[]showDay;CalendarImagecalendarImage;Clockclock;JButtonnextYear,previousYear,nextMonth,previousMonth;JButtonsaveDailyRecord,deleteDailyRecord,readDailyRecord;Filedir;ColorbackColor=Color.white;publicCalendarWindow(){dir=newFile("./dailyRecord");dir.mkdir();showDay=newJTextField[42];for(inti=0;i<showDay.length;i++){showDay[i]=newJTextField();showDay[i].setBackground(backColor);showDay[i].setLayout(newGridLayout(3,3));showDay[i].addMouseListener(this);showDay[i].addFocusListener(this);}calendarMessage=newCalendarMessage();calendarPad=newCalendarPad();notePad=newNotePad();Calendarcalendar=Calendar.getInstance();calendar.setTime(newDate());year=calendar.get(Calendar.YEAR);month=calendar.get(Calendar.MONTH)+1;day=calendar.get(Calendar.DAY_OF_MONTH);calendarMessage.setYear(year);calendarMessage.setMonth(month);calendarMessage.setDay(day);calendarPad.setCalendarMessage(calendarMessage);calendarPad.setShowDayTextField(showDay);notePad.setShowMessage(year,month,day);calendarPad.showMonthCalendar();doMark();//給有日志的號碼做標(biāo)記,見后面的doMark()方法calendarImage=newCalendarImage();calendarImage.setImageFile(newFile("flower.jpg"));clock=newClock();JSplitPanesplitV1=newJSplitPane(JSplitPane.VERTICAL_SPLIT,calendarPad,calendarImage);JSplitPanesplitV2=3日歷記事本系統(tǒng)的設(shè)計(jì)newJSplitPane(JSplitPane.VERTICAL_SPLIT,notePad,clock);JSplitPanesplitH=newJSplitPane(JSplitPane.HORIZONTAL_SPLIT,splitV1,splitV2);add(splitH,BorderLayout.CENTER);showYear=newJTextField(""+year,6);showYear.setFont(newFont("TimesRoman",Font.BOLD,12));showYear.setHorizontalAlignment(JTextField.CENTER);showMonth=newJTextField(""+month,4);showMonth.setFont(newFont("TimesRoman",Font.BOLD,12));showMonth.setHorizontalAlignment(JTextField.CENTER);nextYear=newJButton("下年");previousYear=newJButton("上年");nextMonth=newJButton("下月");previousMonth=newJButton("上月");nextYear.addActionListener(this);previousYear.addActionListener(this);nextMonth.addActionListener(this);previousMonth.addActionListener(this);showYear.addActionListener(this);JPanelnorth=newJPanel();north.add(previousYear);north.add(showYear);north.add(nextYear);north.add(previousMonth);north.add(showMonth);north.add(nextMonth);add(north,BorderLayout.NORTH);saveDailyRecord=newJButton("保存日志");deleteDailyRecord=newJButton("刪除日志");readDailyRecord=newJButton("讀取日志");saveDailyRecord.addActionListener(this);deleteDailyRecord.addActionListener(this);readDailyRecord.addActionListener(this);JPanelpSouth=newJPanel();pSouth.add(saveDailyRecord);pSouth.add(deleteDailyRecord);pSouth.add(readDailyRecord);add(pSouth,BorderLayout.SOUTH);setVisible(true);setBounds(60,60,660,480);validate();setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);}publicvoidactionPerformed(ActionEvente){if(e.getSource()==nextYear){year++;showYear.setText(""+year);calendarMessage.setYear(year);calendarPad.setCalendarMessage(calendarMessage);calendarPad.showMonthCalendar();notePad.setShowMessage(year,month,day);doMark();}elseif(e.getSource()==previousYear){year--;showYear.setText(""+year);calendarMessage.setYear(year);calendarPad.setCalendarMessage(calendarMessage);calendarPad.showMonthCalendar();notePad.setShowMessage(year,month,day);doMark();}elseif(e.getSource()==nextMonth){month++;4Java與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)報(bào)告(2015)if(month>12)month=1;showMonth.setText(""+month);calendarMessage.setMonth(month);calendarPad.setCalendarMessage(calendarMessage);calendarPad.showMonthCalendar();notePad.setShowMessage(year,month,day);doMark();}elseif(e.getSource()==previousMonth){month--;if(month<1)month=12;showMonth.setText(""+month);calendarMessage.setMonth(month);calendarPad.setCalendarMessage(calendarMessage);calendarPad.showMonthCalendar();notePad.setShowMessage(year,month,day);doMark();}elseif(e.getSource()==showYear){Strings=showYear.getText().trim();chara[]=s.toCharArray();booleanboo=false;for(inti=0;i<a.length;i++)if(!(Character.isDigit(a[i])))boo=true;if(boo==true)//彈出“警告”消息對話框JOptionPane.showMessageDialog(this,"您輸入了非法年份","警告",JOptionPane.WARNING_MESSAGE);elseif(boo==false)year=Integer.parseInt(s);showYear.setText(""+year);calendarMessage.setYear(year);calendarPad.setCalendarMessage(calendarMessage);calendarPad.showMonthCalendar();notePad.setShowMessage(year,month,day);doMark();}elseif(e.getSource()==saveDailyRecord){notePad.save(dir,year,month,day);doMark();}elseif(e.getSource()==deleteDailyRecord){notePad.delete(dir,year,month,day);doMark();}elseif(e.getSource()==readDailyRecord)notePad.read(dir,year,month,day);}publicvoidmousePressed(MouseEvente){JTextFieldtext=(JTextField)e.getSource();Stringstr=text.getText().trim();try{day=Integer.parseInt(str);}catch(NumberFormatExceptionexp){}calendarMessage.setDay(day);notePad.setShowMessage(year,month,day);}publicvoidmouseReleased(MouseEvente){}publicvoidmouseEntered(MouseEvente){}publicvoidmouseExited(MouseEvente){}publicvoidmouseClicked(MouseEvente){}publicvoidfocusGained(FocusEvente){5日歷記事本系統(tǒng)的設(shè)計(jì)Componentcom=(Component)e.getSource();com.setBackground(Color.pink);}publicvoidfocusLost(FocusEvente){Componentcom=(Component)e.getSource();com.setBackground(backColor);}publicvoiddoMark(){for(inti=0;i<showDay.length;i++){showDay[i].removeAll();Stringstr=showDay[i].getText().trim();try{intn=Integer.parseInt(str);if(isHaveDailyRecord(n)==true){//見后面的isHaveDailyRecord()方法JLabelmess=newJLabel("有");mess.setFont(newFont("TimesRoman",Font.PLAIN,11));mess.setForeground(Color.blue);showDay[i].add(mess);}}catch(Exceptionexp){}}calendarPad.repaint();calendarPad.validate();}publicbooleanisHaveDailyRecord(intn){Stringkey=""+year+""+month+""+n;String[]dayFile=dir.list();booleanboo=false;for(intk=0;k<dayFile.length;k++){if(dayFile[k].equals(key+".txt")){boo=true;break;}}returnboo;}publicstaticvoidmain(Stringargs[]){newCalendarWindow();}}附錄1.2日歷記事本模塊源程序CalendarPad.javaimportjavax.swing.*;importjava.awt.*;importjava.awt.event.*;importjava.util.*;publicclassCalendarPadextendsJPanel{intyear,month,day;CalendarMessagecalendarMessage;JTextField[]showDay;JLabeltitle[];String[]星期={"SUN日","MON一","TUE二","WED三","THU四","FRI五","SAT六"};JPanelnorth,center;publicCalendarPad(){setLayout(newBorderLayout());north=newJPanel();north.setLayout(newGridLayout(1,7));center=newJPanel();center.setLayout(newGridLayout(6,7));add(center,BorderLayout.CENTER);6Java與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)報(bào)告(2015)add(north,BorderLayout.NORTH);title=newJLabel[7];for(intj=0;j<7;j++){title[j]=newJLabel();title[j].setFont(newFont("TimesRoman",Font.BOLD,12));title[j].setText(星期[j]);title[j].setHorizontalAlignment(JLabel.CENTER);title[j].setBorder(BorderFactory.createRaisedBevelBorder());north.add(title[j]);}title[0].setForeground(Color.red);title[6].setForeground(Color.blue);}publicvoidsetShowDayTextField(JTextField[]text){showDay=text;for(inti=0;i<showDay.length;i++){showDay[i].setFont(newFont("TimesRoman",Font.BOLD,15));showDay[i].setHorizontalAlignment(JTextField.CENTER);showDay[i].setEditable(false);center.add(showDay[i]);}}publicvoidsetCalendarMessage(CalendarMessagecalendarMessage){this.calendarMessage=calendarMessage;}publicvoidshowMonthCalendar(){String[]a=calendarMessage.getMonthCalendar();for(inti=0;i<42;i++)showDay[i].setText(a[i]);validate();}}附錄1.3圖片顯示模塊源程序CalendarImage.javaimportjavax.swing.*;importjava.io.*;importjava.awt.*;publicclassCalendarImageextendsJPanel{FileimageFile;Imageimage;Toolkittool;CalendarImage(){tool=getToolkit();}publicvoidsetImageFile(Filef){imageFile=f;try{image=tool.getImage(imageFile.toURI().toURL());}catch(Exceptionexp){}repaint();}publicvoidpaintComponent(Graphicsg){super.paintComponent(g);intw=getBounds().width;inth=getBounds().height;g.drawImage(image,0,0,w,h,this);}}7日歷記事本系統(tǒng)的設(shè)計(jì)附錄1.4日歷主體日期模塊源程序CalendarMessage.javaimportjava.util.Calendar;publicclassCalendarMessage{intyear=-1,month=-1,day=-1;publicvoidsetYear(intyear){this.year=year;}publicintgetYear(){returnyear;}publicvoidsetMonth(intmonth){if(month<=12&&month>=1)this.month=month;elsethis.month=1;}publicintgetMonth(){returnmonth;}publicvoidsetDay(intday){this.day=day;}publicintgetDay(){returnday;}publicString[]getMonthCalendar(){String[]day=newString[42];Calendarrili=Calendar.getInstance();rili.set(year,month-1,1);//將日歷翻到y(tǒng)ear年month月1日,注意0表示一月...11表示十二月int星期幾=rili.get(Calendar.DAY_OF_WEEK)-1;intdayAmount=0;if(month==1||month==3||month==5||month==7||month==8||month==10||month==12)dayAmount=31;if(month==4||month==6||month==9||month==11)dayAmount=30;if(month==2)if(((year%4==0)&&(year%100!=0))||(year%400==0))dayAmount=29;elsedayAmount=28;for(inti=0;i<星期幾;i++)day[i]="";for(inti=星期幾,n=1;i<星期幾+dayAmount;i++){day[i]=String.valueOf(n);n++;}for(inti=星期幾+dayAmount;i<42;i++)day[i]="";returnday;}}附錄1.5記事本模塊源程序NotePad.javaimportjava.awt.*;importjavax.swing.*;importjava.io.*;importjava.awt.event.*;publicclassNotePadextendsJPanelimplementsActionListener{JTextAreatext;8Java與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)報(bào)告(2015)JTextFieldshowMessage;JPopupMenumenu;JMenuItemitemCopy,itemCut,itemPaste,itemClear;publicNotePad(){showMessage=newJTextField();showMessage.setHorizontalAlignment(JTextField.CENTER);showMessage.setFont(newFont("TimesRoman",Font.BOLD,16));showMessage.setForeground(Color.blue);showMessage.setBackground(Color.pink);showMessage.setBorder(BorderFactory.createRaisedBevelBorder());showMessage.setEditable(false);menu=newJPopupMenu();itemCopy=newJMenuItem("復(fù)制");itemCut=newJMenuItem("剪切");itemPaste=newJMenuItem("粘貼");itemClear=newJMenuItem("清空");itemCopy.addActionListener(this);itemCut.addActionListener(this);itemPaste.addActionListener(this);itemClear.addActionListener(this);menu.add(itemCopy);menu.add(itemCut);menu.add(itemPaste);menu.add(itemClear);text=newJTextArea(10,10);text.addMouseListener(newMouseAdapter(){publicvoidmousePressed(MouseEvente){if(e.getModifiers()==InputEvent.BUTTON3_MASK)menu.show(text,e.getX(),e.getY());}});setLayout(newBorderLayout());add(showMessage,BorderLayout.NORTH);add(newJScrollPane(text),BorderLayout.CENTER);}publicvoidsetShowMessage(intyear,intmonth,intday){showMessage.setText(""+year+"年"+month+"月"+day+"日");}publicvoidsave(Filedir,intyear,intmonth,intday){StringdailyContent=text.getText();StringfileName=""+year+""+month+""+day+".txt";Stringkey=""+year+""+month+""+day;String[]dayFile=dir.list();booleanboo=false;for(intk=0;k<dayFile.length;k++){if(dayFile[k].startsWith(key)){boo=true;break;}}if(boo){Stringm=""+year+"年"+month+"月"+day+"已有日志,將新的內(nèi)容添加到日志嗎?";intok=JOptionPane.showConfirmDialog(this,m,"詢問",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE);if(ok==JOptionPane.YES_OPTION){try{Filef=newFile(dir,fileName);RandomAccessFileout=newRandomAccessFile(f,"rw");longfileEnd=out.length();byte[]bb=dailyContent.getBytes();out.seek(fileEnd);9日歷記事本系統(tǒng)的設(shè)計(jì)out.write(bb);out.close();}catch(IOExceptionexp){}}}else{Stringm=""+year+"年"+month+"月"+day+"還沒有日志,保存日志嗎?";intok=JOptionPane.showConfirmDialog(this,m,"詢問",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE);if(ok==JOptionPane.YES_OPTION){try{Filef=newFile(dir,fileName);RandomAccessFileout=newRandomAccessFile(f,"rw");longfileEnd=out.length();byte[]bb=dailyContent.getBytes();out.write(bb);out.close();}catch(IOExceptionexp){}}}}publicvoiddelete(Filedir,intyear,intmonth,intday){Stringkey=""+year+""+month+""+day;String[]dayFile=dir.list();booleanboo=false;for(intk=0;k<dayFile.length;k++){if(dayFile[k].startsWith(key)){boo=true;break;}}if(boo){Stringm="刪除"+year+"年"+month+"月"+day+"日的日志嗎?";intok=JOptionPane.showConfirmDialog(this,m,"詢問",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE);if(ok==JOptionPane.YES_OPTION){StringfileName=""+year+""+month+""+day+".txt";FiledeleteFile=newFile(dir,fileName);deleteFile.delete();}}else{Stringm=""+year+"年"+month+"月"+day+"無日志記錄";JOptionPane.showMessageDialog(this,m,"提示",JOptionPane.WARNING_MESSAGE);}}publicvoidread(Filedir,intyear,intmonth,intday){StringfileName=""+year+""+month+""+day+".txt";Stringkey=""+year+""+month+""+day;String[]dayFile=dir.list();booleanboo=false;for(intk=0;k<dayFile.length;k++){if(dayFile[k].startsWith(key)){boo=true;break;}}if(boo){Stringm=""+year+"年"+month+"月"+day+"有日志,顯示日志內(nèi)容嗎?";intok=JOptionPane.showConfirmDialog(this,m,"詢問",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE);10Java與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)報(bào)告(2015)if(ok==JOptionPane.YES_OPTION){text.setText(null);try{Filef=newFile(dir,fileName);FileReaderinOne=newFileReader(f);BufferedReaderinTwo=newBufferedReader(inOne);Strings=null;while((s=inTwo.readLine())!=null)text.append(s+"\n");inOne.close();inTwo.close();}catch(IOExceptionexp){}}}else{Stringm=""+year+"年"+month+"月"+day+"無日志記錄";JOptionPane.showMessageDialog(this,m,"提示",JOptionPane.WARNING_MESSAGE);}}publicvoidactionPerformed(ActionEvente){if(e.getSource()==itemCopy)text.copy();elseif(e.getSource()==itemCut)text.cut();elseif(e.getSource()==itemPaste)text.paste();elseif(e.getSource()==itemClear)text.setText(null);}}附錄1.6時(shí)鐘模塊源程序Clock.javaimportjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjava.awt.geom.*;importjava.util.*;publicclassClockextendsJPanelimplementsActionListener{Datedate;javax.swing.TimersecondTime;inthour,munite,second;Line2DsecondLine,muniteLine,hourLine;inta,b,c,width,height;double[]pointSX=newdouble[60],//用來表示秒針端點(diǎn)坐標(biāo)的數(shù)組pointSY=newdouble[60],pointMX=newdouble[60],//用來表示分針端點(diǎn)坐標(biāo)的數(shù)組pointMY=newdouble[60],pointHX=newdouble[60],//用來表示時(shí)針端點(diǎn)坐標(biāo)的數(shù)組pointHY=newdouble[60];Clock(){setBackground(Color.cyan);initPoint();secondTime=newjavax.swing.Timer(1000,this);secondLine=newLine2D.Double(0,0,0,0);muniteLine=newLine2D.Double(0,0,0,0);hourLine=newLine2D.Double(0,0,0,0);secondTime.start();//秒針開始計(jì)時(shí)}privatevoidinitPoint(){width=getBounds().width;11日歷記事本系統(tǒng)的設(shè)計(jì)height=getBounds().height;pointSX[0]=0;//12點(diǎn)秒針位置pointSY[0]=-height/2*5/6;pointMX[0]=0;//12點(diǎn)分針位置pointMY[0]=-(height/2*4/5);pointHX[0]=0;//12點(diǎn)時(shí)針位置pointHY[0]=-(height/2*2/3);doubleangle=6*Math.PI/180;//刻度為6度for(inti=0;i<59;i++){//計(jì)算數(shù)組中的坐標(biāo)pointSX[i+1]=pointSX[i]*Math.cos(angle)-Math.sin(angle)*pointSY[i];pointSY[i+1]=pointSY[i]*Math.cos(angle)+pointSX[i]*Math.sin(angle);pointMX[i+1]=pointMX[i]*Math.cos(angle)-Math.sin(angle)*pointMY[i];pointMY[i+1]=pointMY[i]*Math.cos(angle)+pointMX[i]*Math.sin(angle);pointHX[i+1]=pointHX[i]*Math.cos(angle)-Math.sin(angle)*pointHY[i];pointHY[i+1]=pointHY[i]*Math.cos(angle)+pointHX[i]*Math.sin(angle);}for(inti=0;i<60;i++){pointSX[i]=pointSX[i]+width/2;//坐標(biāo)平移pointSY[i]=pointSY[i]+height/2;pointMX[i]=pointMX[i]+width/2;//坐標(biāo)平移pointMY[i]=pointMY[i]+height/2;pointHX[i]=pointHX[i]+width/2;//坐標(biāo)平移pointHY[i]=pointHY[i]+height/2;}}publicvoidpaintComponent(Graphicsg){super.paintComponent(g);initPoint();for(inti=0;i<60;i++){//繪制表盤上的小刻度和大刻度intm=(int)pointSX[i];intn=(int)pointSY[i];if(i%5==0){if(i==0||i==15||i==30||i==45){intk=10;g.setColor(Color.orange);g.fillOval(m-k/2,n-k/2,k,k);}else{intk=7;g.setColor(Color.orange);g.fillOval(m-k/2,n-k/2,k,k);}}else{intk=2;g.setColor(Color.black);g.fillOval(m-k/2,n-k/2,k,k);}}g.fillOval(width/2-5,height/2-5,10,10);//鐘表中心的實(shí)心圓Graphics2Dg_2d=(Graphics2D)g;g_2d.setColor(Color.red);g_2d.draw(secondLine);BasicStrokebs=newBasicStroke(2f,BasicStroke.CAP_ROUND,BasicStroke.JOIN_MITER);g_2d.setStroke(bs);g_2d.setColor(Color.blue);g_2d.draw(muniteLine);bs=newBasicStroke(4f,BasicStroke.CAP_BUTT,BasicStroke.JOIN_MITER);g_2d.setStroke(bs);g_2d.setColor(Color.orange);g_2d.draw(hourLine);}12Java與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)報(bào)告(2015)publicvoidactionPerformed(ActionEvente){if(e.getSource()==secondTime){date=newDate();Strings=date.toString();hour=Integer.parseInt(s.substring(11,13));munite=Integer.parseInt(s.substring(14,16));second=Integer.parseInt(s.substring(17,19));//獲取時(shí)間中的秒inth=hour%12;a=second;//秒針端點(diǎn)的坐標(biāo)b=munite;//分針端點(diǎn)的坐標(biāo)c=h*5+munite/12;//時(shí)針端點(diǎn)的坐標(biāo)secondLine.setLine(width/2,height/2,(int)pointSX[a],(int)pointSY[a]);muniteLine.setLine(width/2,height/2,(int)pointMX[b],(int)pointMY[b]);hourLine.setLine(width/2,height/2,(int)pointHX[c],(int)pointHY[c]);repaint();}}}13+用戶確認(rèn)測試報(bào)告模板發(fā)表于:2022.12.12來自:字?jǐn)?shù):2224手機(jī)看范文項(xiàng)目名稱:用戶確認(rèn)測試報(bào)告項(xiàng)目名稱確認(rèn)測試報(bào)告XXXXX公司版權(quán)所有違者必究項(xiàng)目名稱:用戶確認(rèn)測試報(bào)告文件修改記錄項(xiàng)目名稱:用戶確認(rèn)測試報(bào)告目錄11.1引言...........................................................................................................................................................1背景...................................................................................................................................................1計(jì)劃安排...................................................................................................................................................2.4測試人員...........................................................................................................................................1測試環(huán)境...........................................................................................................................................1測試依據(jù)...........................................................................................................................................1需求概述...........................................................................................................................................1測試項(xiàng)目...................................................................................................................................................233.1模塊名稱...........................................................................................................................................2測試結(jié)論...................................................................................................................................................344.14.2總體意見...........................................................................................................................................3測試方簽字.......................................................................................................................................3項(xiàng)目名稱:用戶確認(rèn)測試報(bào)告1背景說明項(xiàng)目的背景,一般參照項(xiàng)目需求說明書進(jìn)行2計(jì)劃安排2.1測試人員說明參與測試的人員及部門,如:2.2測試環(huán)境軟件資源:硬件資源:網(wǎng)絡(luò)資源:2.3測試依據(jù)列出項(xiàng)目的需求文檔名稱,或者是標(biāo)書等2.4需求概述以列表的形式概述系統(tǒng)的功能。確認(rèn)測試報(bào)告1項(xiàng)目名稱:用戶確認(rèn)測試報(bào)告3測試項(xiàng)目3.1模塊名稱項(xiàng)目名稱:用戶確認(rèn)測試報(bào)告4測試結(jié)論4.1總體意見4.2測試方簽字XXXXXX:日期:XXXXX:日期:

第二篇:設(shè)計(jì)報(bào)告模板27300字Java與面向?qū)ο蠹夹g(shù)課程設(shè)計(jì)報(bào)告(2015--2016年度第1學(xué)期)日歷記事本專業(yè)計(jì)算機(jī)科學(xué)與技術(shù)朱浩M計(jì)算機(jī)1221251404214許秋艷20xx年11月

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論