Read an Excerpt
PREFACE: A Few Words about the State of Java
Although Java seems like it could be the biggest phenomenon to hit the world of computer programming in a long, long time, IÕm going to take a more conservative approach in this book. Applets and the world wide web are important, but I think that when the applet craze dies down, weÕll be faced with Java as a "regular" programming languageÑone that you use to build applications for an existing operating system (other than the world wide web, if that can truly be considered an OS). The operating system that I have focused on since it became widely used is Microsoft Windows and I think itÕs a proven winner. Thus, this book is about the use of Java for Windows programming and here (in The Way of Java) I take a similar approach to exploring the language and developing applications that I took in my previous book, The Way of Delphi. Rather than focus on nuances of the language and fragments of code, I develop many small but complete applications that show you how to get things done in Java.
It turns out that exploring Java with the same expectations as I had when exploring Delphi was not such an easy task, because while Java is designed to allow you to write a program (or application) that runs equally well under all platforms, the current price you must pay is that the graphical user interface looks equally mediocre on all platforms. In addition, many of the controls that are available under Windows cannot be accessed from Java, and the look and feel of a Java application is different from a Windows application. ItÕs still possible to write useful programs in Java, but youÕre limited in the ways you can express yourself, so Iwork within these limitations in this book.
How is this book different from the myriad of "introduction to Java" and "why Java is so great" books? I think my talent is not in dissecting or breaking the language (which is certainly valuable, and someone needs to do itÑsee, for example, my friend Bruce EckelÕs Thinking in Java at ...