本書是一本高級Java 2編程方面的教材,介紹了Java 2平臺的多種常用及前沿技術。本書從高級GUI編程入手,講解了Java 2D、Java 3D圖形設計以及JavaBean組件模型;討論了分布式編程,其中包括RMI、Jini、Jiro、JMX、CORBA以及JavaSpace的概念;介紹了有關網絡服務的內容,并通過實例講解了servlet和JSP的應用,然后列舉了與其他Web服務相關的技術,例如WML、SOAP等。本書還討論了構造企業級Java應用的關鍵技術,其中包括安全、JDBC、EJB等,并給出一個利用Java技術實現的網上書店。本書所附的光盤上含有書中用到的一些軟件,并提供了全部的程序代碼。全書內容豐富、結構嚴謹、條理清晰,寫作方法別具一格,并且給出了大量的實例和練習,是一本難得的高級Java 2編程教材。 本書是高等院校進行中高級Java編程語言教學的教材,是軟件設計人員進行企業級Java應用開發的寶貴參考資料,也適合所有想深入學習Java的讀者使用。
Java技術極大地推動了應用程序和企業級系統的開發。本書是繼"Java How to Program,Fourth Edition"之后的又一力作,其中包含了將近40000行代碼的范例程序與案例分析。本書主要討論基于J2EE的企業級系統的開發,同時還給出了親的J2EE概念,并介紹了如何使用J2ME進行無線/小型設備的編程。
Harvey M.Deitel博士 Deitel & Associates公司的執行總裁,有著近40年計算機領域的工作經驗,進行過大量深入的教學研究,是世界的計算機科學教授和研討會演講人。他是幾十本專著和多媒體軟件包的作者或合著者,是全球知名的計算機教材作者。
Preface
1 Introduction
1.1 Introduction
1.2 Architecture of the Book
1.3 Tour of the Book
1.4 Running Example Code
1.5 Design Patterns
2 Advanced Swing Graphical User Interface Components
2.1 Introduction
2.2 WebBrowser Using JEditorPane and JToolBar
2.3 Swing Actions
2.4 JSplitPane and JTabbedPane
2.5 Multiple-Document Interfaces
2.6 Drag and Drop
2.7 Internationalization
2.8 Accessibility
2.9 Internet and World Wide Web Resources
3 Model-View-Controller
3.1 Introduction
3.2 Model-View-Controller Architecture
3.3 Objservable Class and Observer Interface
3.4 JList
3.5 JTable
3.6 JTree
4 Graphics Programming with Java 2D and Java 3D
4.1 Introduction
4.2 Coordinates,Graphics Contexts and Graphics Objects
4.3 Java 2D API
4.4 Java 3D API
4.5 A Java 3D Case Study:A 3D Game with Custom Behaviors
5 Case Study:Java 2D GUI Application with Design Patterns
5.1 Introduction
5.2 Application Overview
5.3 MyShape Class Hierarchy
5.4 Deitel DrawingModel
5.5 Deitel Drawing Views
5.6 Deitel Drawing Controller Logic
5.7 DrwingInternalFrame Component
5.8 Zoomdialog,Action and Icon Components
5.9 DeitelDrawing Application
6 JavaBeans Component Model
6.1 Introduction
6.2 Using Beans in Forte for Java Community Edition
6.3 Preparing a Class to be a JavaBean
6.4 Creating a JavaBean:Java Archive Files
6.5 JavaBean Properties
6.6 Bound Properties
6.7 Indexed Properties and Custom Events
6.8 Customizing JavaBeans for Builder Tools
6.9 Internet and World Wide Web Resources
7 Security
8 Java Database Connectivity(JDBC
9 Servlets
10 JavaServer Pages(JSP
11 Case Study:Servlet and JSP Bookstore
12 Java-Based Wireless Applications Development and J2ME
13 Remote Method Invocation
14 Session EJBs and Distributed Transactions
15 Entity EJBs
16 Messaging with JMS
17 Enterprise Java Case Study:Architectural Overview
18 Enterprise Java Case Study:Presentation and Controller Logic
19 Enterprise Java Case Study:Business Logic Part 1
20 Enterprise Java Case Study:Business Logic Part 2
21 Application Servers
22 Jini
23 JavaSpaces
24 Java Management Extensions(JMX)(on CD
25 Jiro(on CD
26 Common Object Request Broker Architecture (CORBA):Part 1(on CD
27 Common Object Request Broker Architecture(CORBA):Part 2 (on CD
28 Peer-to-Peer Applications and JXTA
29 Introduction to Web Services and SOAP
A Creating Markup with XML (on CD
B Document Type Definition(DTD)(on CD
C Document Object Model(DOMTM)(on CD
D XSL:Extensible Stylesheet Language Transformations(XSLT)(on CD
E Downloading and Installing J2EE 1.2.1(on CD
F Java Community ProcessSM(JCP)(on CD
G Java Native Interface(JNI)(on CD
H Career Opportunities(on CD
I Unicode(on CD
Index