tailieunhanh - Introduction to java programming: Chapter 16 - Applets and Multimedia

Introduction to java programming: Chapter 16 - Applets and Multimedia's Objectives is to explain how the Web browser controls and executes applets; describe the init, start, stop, and destroy methods in the Applet class; know how to embed applets in Web pages. | Chapter 16 Applets and Multimedia Chapter 12 GUI Basics Chapter 13 Graphics Chapter 14 Event-Driven Programming Chapter 15 Creating User Interfaces Chapter 16 Applets and Multimedia Abstract Classes in Chapter 10 Interfaces in Chapter 10 Liang Introduction to Java Programming Sixth Edition c 2005 Pearson Education Inc. All rights reserved. 0-13-148952-6 1 Objectives To explain how the Web browser controls and executes applets . To describe the init start stop and destroy methods in the Applet class . To know how to embed applets in Web pages . To run applets from appletviewer and from Web browsers . To pass string values to applets from HTML . To write a Java program that can run as both an application and an applet . To get image files using the URL class and display images in the panel Optional . To develop a reusable component ImageViewer to display images Optional . To get audio files and play sound Optional . To package and deploy Java projects using Java archive files Optional . To use Swing pluggable look-and-feel Optional . Liang Introduction to Java Programming Sixth Edition c 2005 Pearson Education Inc. All 2 rights reserved. 0-13-148952-6 2 The JApplet Class The Applet class is an AWT class and is not designed to work with Swing components. To use Swing components in Java applets it is necessary to create a Java applet that extends which is a subclass of . JApplet inherits all the methods from the Applet class. In addition it provides support for laying out Swing components. Liang Introduction to Java Programming Sixth Edition c 2005 Pearson Education Inc. All rights reserved. .

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.