面向对象技术JavaObject-Oriental Technology Java.pptVIP

面向对象技术JavaObject-Oriental Technology Java.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
面向对象技术JavaObject-Oriental Technology Java.ppt

面向对象技术Java 面向对象技术Java Object-Oriental Technology Java 广东科学技术职业学院计算机工程技术学院 曾文权老师 Email:bless365@126.com 第9章 Java小应用程序Applet 学习目标(Course Objectives) 了解小应用程序的原理 掌握小应用程序的开发步骤 能用Java语言编写小应用程序 第9章 Java小应用程序Applet 9.1 Applet入门 9.2 Applet的开发步骤 9.3 Applet的常用方法 9.4 Applet的多媒体(Multimedia)应用 9.5 Applet间的通信 小结 9.1 Applet Introduction 引入: (1)C/B应用模式中,如何使Browser界面更为生动,即在Browser环境中实现图像表示、声音播放等多媒体功能? (2)具有对Browser客户的交互事件处理、多线程运行、网络访问等灵活的Web功能。 (3)安全、跨平台的网络应用程序。 9.1 Applet Introduction Solution: Java Applet 9.1 Applet Definition An applet is a program written in the JavaTM programming language that can be included in an HTML page, much in the same way an image is included. When you use a Java technology-enabled browser to view a page that contains an applet, the applets code is transferred to your system and executed by the browsers Java Virtual Machine (JVM). 9.1 Applet Secutiry Applications vs. Applets (1) Similarities They both are Java programs. (2) Differences An applet is a small program that is intended not to be run on its own, but rather to be embedded inside another application. Applications vs. Applets——Privileges (1) Applets are not allowed to read from, or write to, the file system of the computer viewing the applets. (2) Applets are not allowed to run any programs on the browser’s computer. (3) Applets are not allowed to establish connections between the user’s computer and another computer except with the server where the applets are stored. 9.2 Applet的开发步骤 编辑Applet的Java源文件( Edit Source Applet) 9.2 Applet程序开发步骤 Compiling Programs: On command line javac JavaWorld.java Creating an HTML File Embeded with Applet: html title java World! Appplettitle applet code=JavaWorld.class“ width=300 height=200 /applet html Viewing Java Applets: 9.2 Applet程序开发步骤 Applet Viewer Utility : appletviewer JavaWorld.html Example: appletviewer JavaWorld.html 9.2 Applet程序开发步骤 运行结果 9.2 Applet程序开发步骤_归纳 (1) 编译Applet javac JavaWorld.java (2)

文档评论(0)

t9s25ccvm + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档