Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Lecture Introduction to Java programming - Chapter 18: Applets and multimedia
Đang chuẩn bị liên kết để tải về tài liệu:
Lecture Introduction to Java programming - Chapter 18: Applets and multimedia
Ngọc Khánh
83
40
ppt
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
In this chapter, you will learn how to write Java applets, explore the relationship between applets and the Web browser, and discover the similarities and differences between applications and applets. You will also learn how to create multimedia Java applications and applets with images and audio. | Chapter 18 Applets and Multimedia Motivations When browsing the Web, you frequently see the graphical user interface and animation developed using Java. These programs are called Java applets. Suppose you want to develop a Java applet for the Sudoku game. How do you write this program? Sudoku Objectives To convert GUI applications to applets (§18.2). To embed applets in Web pages (§18.3). To run applets from Web browsers and from the appletviewer (§§18.3.1-18.3.2). To write a Java program that can run as both an application and an applet (§18.4). To override the init, start, stop, and destroy methods in the Applet class (§18.5). To pass string values to applets from HTML (§18.6). To develop an applet for the TicTacToe game (§18.7). To develop an animation for a bouncing ball (§18.8). To locate resources (images and audio) using the URL class (§18.9). To play audio in any Java program (§18.10). Developing Applets The HTML Tag First Simple Applet Java Applet Demo DisplayLabel Run Applet Viewer Applications vs. Applets Similarities Since JFrame and JApplet both are subclasses of the Container class, all the user interface components, layout managers, and event-handling features are the same for both classes. Differences Applications are invoked from the static main method by the Java interpreter, and applets are run by the Web browser. The Web browser creates an instance of the applet using the applet’s no-arg constructor and controls and executes the applet through the init, start, stop, and destroy . | Chapter 18 Applets and Multimedia Motivations When browsing the Web, you frequently see the graphical user interface and animation developed using Java. These programs are called Java applets. Suppose you want to develop a Java applet for the Sudoku game. How do you write this program? Sudoku Objectives To convert GUI applications to applets (§18.2). To embed applets in Web pages (§18.3). To run applets from Web browsers and from the appletviewer (§§18.3.1-18.3.2). To write a Java program that can run as both an application and an applet (§18.4). To override the init, start, stop, and destroy methods in the Applet class (§18.5). To pass string values to applets from HTML (§18.6). To develop an applet for the TicTacToe game (§18.7). To develop an animation for a bouncing ball (§18.8). To locate resources (images and audio) using the URL class (§18.9). To play audio in any Java program (§18.10). Developing Applets The HTML Tag
TÀI LIỆU LIÊN QUAN
Lecture Introduction to Java programming - Chapter 1: Introduction to computers, programs, and Java
Lecture Introduction to programming with Java - Chapter 1: Introduction to computers and programming
Lecture Introduction to programming with Java - Chapter 3: Java basics
Lecture Introduction to Java programming - Chapter 2: Elementary programming
Lecture Introduction to Java programming - Chapter 16: Event-driven programming
Lecture Introduction to programming with Java - Chapter 6: Object-oriented programming
Lecture Introduction to programming with Java - Chapter 7: Object-oriented programming – Additional details
Lecture Introduction to Java programming - Chapter 15: Graphics
Lecture Introduction to programming with Java - Chapter 16: GUI programming basics
Lecture Introduction to Java programming - Chapter 8: Objects and classes