Synopses & Reviews
Part of O'Reilly's definitive set of Java documentation,Learning Java introduces the basics of Java, the object-oriented programming language for networked applications from Sun Microsystems. This book provides a broad survey of the Java 2 Standard Edition and contains everything necessary to get up to speed quickly. It covers the essentials of hot topics like Swing and JFC; describes new tools for signing applets and other Java classes; and shows how to write networked clients and servers, servlets, JavaBeans, and state-of-the-art user interfaces.Java started out as a tool for creating animated web pages, but it's proven to be much more. Java is now used for everything from sophisticated web clients to mission-critical enterprise applications. In the future, Java will become the basis for a new generation of distributed software that runs on devices ranging from cell phones to supercomputers. In the practical, hands-on approach characteristic of O'Reilly, Learning Java demonstrates why Java is now the language of choice for building the next generation of computer software.Includes a CD-ROM containing the example code and JBuilder for Windows and Solaris.Learning Java covers:
- History and principles of Java
- How to write simple applets and applications
- How to integrate applets into the World Wide Web
- Java Fundamental Class (JFC) and Swing Libraries
- Using threads
- Using arrays
- Network programming with sockets
- Remote Method Invocation
- Servlets
- Signing applets
- Creating a security policy
Synopsis
Whether you're just migrating to Java or working steadily in the forefront of Java development, "Learning Java" gives a clear, systematic overview of the Java 2 Standard Edition. It covers the essentials of hot topics like Swing and JFC; describes new tools for signing applets; and shows you how to write networked clients and servers, servlets, JavaBeans, and state-of-the-art user interfaces.
Synopsis
Part of O'Reilly's definitive set of Java documentation, Learning Java introduces the basics of Java, the object-oriented programming language for networked applications from Sun Microsystems. This book provides a broad survey of the Java 2 Standard Edition and contains everything necessary to get up to speed quickly. It covers the essentials of hot topics like Swing and JFC; describes new tools for signing applets and other Java classes; and shows how to write networked clients and servers, servlets, JavaBeans, and state-of-the-art user interfaces. Java started out as a tool for creating animated web pages, but it's proven to be much more. Java is now used for everything from sophisticated web clients to mission-critical enterprise applications. In the future, Java will become the basis for a new generation of distributed software that runs on devices ranging from cell phones to supercomputers. In the practical, hands-on approach characteristic of O'Reilly, Learning Java demonstrates why Java is now the language of choice for building the next generation of computer software. Includes a CD-ROM containing the example code and JBuilder for Windows and Solaris. Learning Java covers: History and principles of JavaHow to write simple applets and applicationsHow to integrate applets into the World Wide WebJava Fundamental Class (JFe and Swing LibrariesUsing threadsUsing arraysNetwork programming with socketsRemote Method InvocationServletsSigning appletsCreating a security policy
About the Author
Jonathan Knudsen is an author at O'Reilly & Associates. His books include The Unofficial Guide to Lego Mindstorms Robots, Java 2D Graphics, and Java Cryptography. He is the Courseware Writer for LearningPatterns.com.
Table of Contents
Preface; New Developments; Audience; Using This Book; Getting Wired; Conventions Used in This Book; How to Contact Us; Acknowledgments; Chapter 1: Yet Another Language?; 1.1 Enter Java; 1.2 A Virtual Machine; 1.3 Java Compared with Other Languages; 1.4 Safety of Design; 1.5 Safety of Implementation; 1.6 Application and User-Level Security; 1.7 Java and the World Wide Web; 1.8 Java as a General Application Language; 1.9 A Java Road Map; Chapter 2: A First Application; 2.1 HelloJava1; 2.2 HelloJava2: The Sequel; 2.3 HelloJava3: The Button Strikes!; 2.4 HelloJava4: Netscape's Revenge; Chapter 3: Tools of the Trade; 3.1 The Java Interpreter; 3.2 Policy Files; 3.3 The Class Path; 3.4 The Java Compiler; 3.5 Java Archive (JAR) Files; Chapter 4: The Java Language; 4.1 Text Encoding; 4.2 Comments; 4.3 Types; 4.4 Statements and Expressions; 4.5 Exceptions; 4.6 Arrays; Chapter 5: Objects in Java; 5.1 Classes; 5.2 Methods; 5.3 Object Creation; 5.4 Object Destruction; Chapter 6: Relationships Among Classes; 6.1 Subclassing and Inheritance; 6.2 Interfaces; 6.3 Packages and Compilation Units; 6.4 Visibility of Variables and Methods; 6.5 Arrays and the Class Hierarchy; 6.6 Inner Classes; Chapter 7: Working with Objects and Classes; 7.1 The Object Class; 7.2 The Class Class; 7.3 Reflection; Chapter 8: Threads; 8.1 Introducing Threads; 8.2 Threads in Applets; 8.3 Synchronization; 8.4 Scheduling and Priority; 8.5 Thread Groups; Chapter 9: Basic Utility Classes; 9.1 Strings; 9.2 Math Utilities; 9.3 Dates; 9.4 Timers; 9.5 Collections; 9.6 Properties; 9.7 The Security Manager; 9.8 Internationalization; Chapter 10: Input/Output Facilities; 10.1 Streams; 10.2 Files; 10.3 Serialization; 10.4 Data Compression; Chapter 11: Network Programming with Sockets and RMI; 11.1 Sockets; 11.2 Datagram Sockets; 11.3 Simple Serialized Object Protocols; 11.4 Remote Method Invocation (RMI); Chapter 12: Programming for the Web; 12.1 Uniform Resource Locators (URLs); 12.2 The URL Class; 12.3 Web Browsers and Handlers; 12.4 Talking to CGI Programs and Servlets; 12.5 Implementing Servlets; Chapter 13: Swing; 13.1 Components; 13.2 Containers; 13.3 Events; 13.4 Event Summary; 13.5 Multithreading in Swing; Chapter 14: Using Swing Components; 14.1 Buttons and Labels; 14.2 Checkboxes and Radio Buttons; 14.3 Lists and Combo Boxes; 14.4 Borders; 14.5 Menus; 14.6 The PopupMenu Class; 14.7 The JScrollPane Class; 14.8 The JSplitPane Class; 14.9 The JTabbedPane Class; 14.10 Scrollbars and Sliders; 14.11 Dialogs; Chapter 15: More Swing Components; 15.1 Text Components; 15.2 Trees; 15.3 Tables; 15.4 Desktops; 15.5 Pluggable Look-and-Feel; 15.6 Creating Custom Components; Chapter 16: Layout Managers; 16.1 FlowLayout; 16.2 GridLayout; 16.3 BorderLayout; 16.4 BoxLayout; 16.5 CardLayout; 16.6 GridBagLayout; 16.7 Nonstandard Layout Managers; 16.8 Absolute Positioning; Chapter 17: Drawing with the 2D API; 17.1 The Big Picture; 17.2 The Rendering Pipeline; 17.3 A Quick Tour of Java 2D; 17.4 Filling Shapes; 17.5 Stroking Shape Outlines; 17.6 Using Fonts; 17.7 Displaying Images; 17.8 Using Drawing Techniques; 17.9 Printing; Chapter 18: Working with Images and Other Media; 18.1 Implementing an ImageObserver; 18.2 Using a MediaTracker; 18.3 Producing Image Data; 18.4 Filtering Image Data; 18.5 Working with Audio; 18.6 Working with Movies; Chapter 19: Java Beans; 19.1 What's a Bean?; 19.2 Building Beans; 19.3 Hand-Coding with Beans; 19.4 Putting Reflection to Work; 19.5 BeanContext and BeanContextServices; 19.6 The Java Activation Framework; 19.7 Enterprise JavaBeans; Chapter 20: Applets; 20.1 The JApplet Class; 20.2 The