收藏 分享(赏)

面向对象程序设计教案(英文).doc

上传人:dzzj200808 文档编号:2724971 上传时间:2018-09-26 格式:DOC 页数:19 大小:547KB
下载 相关 举报
面向对象程序设计教案(英文).doc_第1页
第1页 / 共19页
面向对象程序设计教案(英文).doc_第2页
第2页 / 共19页
面向对象程序设计教案(英文).doc_第3页
第3页 / 共19页
面向对象程序设计教案(英文).doc_第4页
第4页 / 共19页
面向对象程序设计教案(英文).doc_第5页
第5页 / 共19页
点击查看更多>>
资源描述

1、ObjectOriented Programmingcases2007.03teaching planContents(Titles)Chapter 1: Introduction to Java Hour 2TeachingaimsGrade is B if score is = best20;Grade is C if score is = best30;Grade is D if score is = best40;Grade is F otherwise.postscriptteaching planContents(Titles)Chapter 7 Arrays and Vector

2、s 7.4 Wrapper Classes7.5 Command-Line Parameters7.6 The Vector ClassHour 2Teachingaims& requirementTeaching aims:Maintain Numeric Wrapper ClassesKnown how to use Command-Line ParametersMaintain Creating Generic ClassesKnown The Vector ClassTeaching requirement:Use two-dimensional arrays to create tw

3、o matrices, and then add and multiple the two matrices.Use The Integer Class and The Double Class.Emphases,Difficulties&treatmentEmphases:The Integer ClassThe Double ClassWrapper ClassesCommand-Line ParametersThe Vector ClassDifficulties:The Double ClassWrapper ClassesCommand-Line Parameterstreatmen

4、t:Example Using Command-Line ParametersExample Designing Generic ClassesExample Extending Abstract ClassesTeaching methodcombination of teaching in class and review after class。literature1. 美H.M.Deitel & P.J.Deitel.Java 大学教程(第四版).北京:电子工业出版社,20042. 美John ODonahue.Java 数据库编程.北京:电子工业出版社,20053. 美Ivor Ho

5、rton.JAVA 2 入门经典.中国电力出版社,20054. 美 C. Thomas Wu.面向 对象程序设计导论.北京: 电子工业出版社,2004HomeworkandrequirementWrite a program that will perform binary operations on integers. The program receives three parameters: an operator and two integers.postscriptteaching planContents(Titles)Chapter 8 Getting Started with

6、Graphics Programming 8.1 Graphics Class. 8.2 Frames. 8.3 Layout ManagersHour 2Teachingaims& requirementTeaching aims:Graphics Class Hierarchy.Creating frames, centering frames, adding components to framesFlowLayout, GridLayout, BorderLayout.Teaching requirement:Known Graphics Class Hierarchy.Maintai

7、n Creating frames, centering frames, adding components to frames.Learning use Layout Managers: FlowLayout, GridLayout, BorderLayout.Emphases,Difficulties&treatmentEmphases:Creating frames, centering frames, adding components to frames,FlowLayout, GridLayout, BorderLayoutDifficulties:Creating frames

8、adding components to framesFlowLayout, GridLayout, treatment:Example Testing the FlowLayout ManagerExample Testing the GridLayout ManagerTeaching methodcombination of teaching in class and review after class。literature1. 美H.M.Deitel & P.J.Deitel.Java 大学教程(第四版).北京:电子工业出版社,20042. 美John ODonahue.Java 数

9、据库编程.北京:电子工业出版社,20053. 美Ivor Horton.JAVA 2 入门经典.中国电力出版社,20054. 美 C. Thomas Wu.面向 对象程序设计导论.北京: 电子工业出版社,2004HomeworkandrequirementThe GridLayout manager arranges components in a grid (matrix) formation with the number of rows and columns defined by the constructor. The components are placed in the gri

10、d from left to right starting with the first row, then the second, and so onpostscriptteaching planContents(Titles)Chapter 8 Getting Started with Graphics Programming8.4 Drawing on Panels8.5 Using Colors, Fonts, and Font MetricsHour 2Teachingaims& requirementTeaching aims:Place the user interface co

11、mponents in panels and place the panels in a frame. Learn to use The Color Class, The Font Class, The FontMetrics Class.Teaching requirement:Draw in a panel, Use panels to organize components. Can use the methods to set the components background and foreground colors, Setting Fonts, Using FontMetric

12、s.Emphases,Difficulties& treatmentEmphases:Using Panels as ContainersThe Color ClassThe Font ClassThe FontMetrics ClassDifficulties:Using Panels as ContainersThe Color ClassThe Font Classtreatment:Use Example 8.4 Testing Pane.Example Using FontMetricslTeachingmethodPPT & lab Exercisesliterature1. 美H

13、.M.Deitel & P.J.Deitel.Java 大学教程(第四版).北京:电子工业出版社,20042. 美John ODonahue.Java 数据库编程.北京:电子工业出版社,20053. 美Ivor Horton.JAVA 2 入门经典.中国电力出版社,20054. 美 C. Thomas Wu.面向 对象程序设计导论.北京: 电子工业出版社,2004HomeworkandrequirementDisplay “Welcome to Java” in SansSerif 20-point bold, centered in the frame.postscriptteaching

14、planContents(Titles)Chapter 9:Creating User Interfaces9.1 What is a JavaBean?9.2 JComponent9.3 JButtonHour 2Teachingaims& requirementTeaching aims:Learn to use JComponent Properties. toolTipText, font, background, foreground, doubleBuffered, border, preferredSize, minimumSize, maximumSizeJButton Pro

15、perties, text,icon,mnemonic, horizontalAlignment, verticalAlignment, horizontalTextPosition, verticalTextPositionTeaching requirement:use JComponent Properties. A button is a component that triggers an action event when clicked.Emphases,Difficulties&treatmentEmphases:Component Properties. toolTipTex

16、t, font, background, foregroundButton Properties, text,icon,mnemonic, horizontalAlignment, verticalAlignment, horizontalTextPosition, verticalTextPosition.Difficulties:Component Properties.Button Properties.treatment:Use example to display how to use ButtonTeaching methodPPT & lab Exercisesliteratur

17、e1. 美H.M.Deitel & P.J.Deitel.Java 大学教程(第四版).北京:电子工业出版社,20042. 美John ODonahue.Java 数据库编程.北京:电子工业出版社,20053. 美Ivor Horton.JAVA 2 入门经典.中国电力出版社,20054. 美 C. Thomas Wu.面向 对象程序设计导论.北京: 电子工业出版社,2004HomeworkandrequirementCreate a user interface that use button.postscriptteaching planContents(Titles)Chapter 9:

18、Creating User Interfaces9.4 JLabel9.5 JTextField9.6 JTextAreaHour 2Teachingaims& requirementTeaching aims:Learn to use JLabel, JtextField, JTextArea.Teaching requirement:A label is a display area for a short text, an image, or both.A text field is an input area where the user can type in characters.

19、 Text fields are useful in that they enable the user to enter in variable data.JTextArea Constructors, JTextArea Properties.Emphases,Difficulties&treatmentEmphases:JLabel, JtextField, JTextArea.Difficulties:JLabel, JtextField, JTextArea.treatment:Use example to display how to use JLabel, JtextField,

20、 JTextArea.Teaching methodPPT & lab Exercisesliterature1. 美H.M.Deitel & P.J.Deitel.Java 大学教程(第四版).北京:电子工业出版社,20042. 美John ODonahue.Java 数据库编程.北京:电子工业出版社,20053. 美Ivor Horton.JAVA 2 入门经典.中国电力出版社,20054. 美 C. Thomas Wu.面向 对象程序设计导论.北京: 电子工业出版社,2004HomeworkandrequirementCreate a user interface that use JL

21、abel, JtextField, JTextArea.postscriptteaching planContents(Titles)Chapter 10: Applets and Advanced Graphics Hour 2Teachingaims&requirementTeaching aims:The Applet ClassPassing Parameters to AppletsConversions Between Applications and AppletsRunning a Program as an Applet and as an ApplicationHandli

22、ng the Mouse EventHandling the Keyboard EventTeaching requirement:Passing Parameters to AppletsConversions Between Applications and AppletsRunning a Program as an Applet and as an ApplicationHandling the Mouse EventHandling the Keyboard EventEmphases,Difficulties& treatmentEmphases:The Applet ClassW

23、riting AppletsHandling Mouse EventsHandling Keyboard EventsDifficulties:Writing AppletsHandling Mouse EventsHandling Keyboard Eventstreatment:Example Using AppletsTeachingmethodPPT & lab Exercisesliterature1. 美H.M.Deitel & P.J.Deitel.Java 大学教程(第四版).北京:电子工业出版社,20042. 美John ODonahue.Java 数据库编程.北京:电子工业

24、出版社,20053. 美Ivor Horton.JAVA 2 入门经典.中国电力出版社,20054. 美 C. Thomas Wu.面向 对象程序设计导论.北京: 电子工业出版社,2004HomeworkandrequirementCompute mortgages. The applet enables the user to enter the annual interest rate, the number of years, and the loan amount. Click the Compute Mortgage button, and the applet displays t

25、he monthly payment and the total payment. postscriptteaching planContents(Titles)Chapter 11: Exception Handling Hour 2Teachingaims& requirementTeaching aims:Exceptions and Exception Types Claiming ExceptionsThrowing Exceptions Catching ExceptionsRethrowing ExceptionsThe finally ClauseTeaching requir

26、ement:Exceptions and Exception Types, Claiming, Throwing, and Catching Exceptions, Catching Exceptions, Cautions When Using Exceptions.Emphases,Difficulties& treatmentEmphases:Exceptions and Exception TypesClaiming, Throwing, and Catching ExceptionsThe finally ClauseCautions When Using ExceptionsDif

27、ficulties:Claiming, Throwing, and Catching ExceptionsThe finally Clausetreatment:Example Exception HandlingExample Exceptions in GUI ApplicationsTeaching methodPPT & lab Exercisesliterature1. 美H.M.Deitel & P.J.Deitel.Java 大学教程(第四版).北京:电子工业出版社,20042. 美John ODonahue.Java 数据库编程.北京:电子工业出版社,20053. 美Ivor

28、Horton.JAVA 2 入门经典.中国电力出版社,20054. 美 C. Thomas Wu.面向 对象程序设计导论.北京: 电子工业出版社,2004HomeworkandrequirementAn error message appears on the console, but the GUI application continues running.Re-run the MenuDemo applet from Example 9.9 and divide by 0 to see how a GUI deals with unhandled exceptions.postscrip

29、tteaching planContents(Titles)Chapter 12: Multimedia Hour 2Teachingaims& requirementTeaching aims:Audio FilesPlaying AudioRunning Audio on a Separate ThreadDisplaying ImagesDisplaying a Sequence of ImagesTeaching requirement:Plays the audio clip after it is given the URL and the file name that is re

30、lative to the URL. Nothing happens if the audio file cannot be found. Two methods are available for displaying images.Using Image AnimationEmphases,Difficulties&treatmentEmphases:Playing AudioUsing Audio ClipsDisplaying ImagesDifficulties:Using Audio ClipsDisplaying Imagestreatment:Example Displayin

31、g Images in an Applet.Teaching methodPPT & lab Exercisesliterature1. 美H.M.Deitel & P.J.Deitel.Java 大学教程(第四版).北京:电子工业出版社,20042. 美John ODonahue.Java 数据库编程.北京:电子工业出版社,20053. 美Ivor Horton.JAVA 2 入门经典.中国电力出版社,20054. 美 C. Thomas Wu.面向 对象程序设计导论.北京: 电子工业出版社,2004HomeworkandrequirementAvoid the conflict between painting the clock and announcing time in Example 14.1 by running the tasks on separate threads.postscript

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 大学课件

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报