Book Image

NetBeans Platform 6.9 Developer's Guide

By : Jürgen Petri
Book Image

NetBeans Platform 6.9 Developer's Guide

By: Jürgen Petri

Overview of this book

<p>The NetBeans Platform has many features provided out of the box for Swing desktop application developers. It can take you hours just to create menu bars, toolbars, a window system, and other typical desktop application infrastructural needs rather than you focusing on your domain knowledge. Imagine how much time you could save with a hands-on guide for using the NetBeans Platform, which relieves you from creating desktop functions for each of your applications.<br /><br />This book guides you through the development of a complete Swing application built on the NetBeans Platform. Each chapter introduces a number of new concepts relating to a theme, such as the window system, and then shows you how to implement the concepts in the application you are creating. At the end of the book you have a task manager, which you can adapt to your own purposes. Or you can, of course, create your own applications, now that you have built up a solid basis of NetBeans Platform knowledge.<br /><br />The NetBeans Platform is a framework for developing large distributed desktop applications. It aims to drastically simplify desktop application development by providing a number of techniques, patterns, and full-blown Swing components out of the box. Most desktop applications have very similar technical requirements, such as: a consistent user interface, extensibility, data display, configuration settings, a help system, distribution mechanisms, on-line update possibilities, and the ability to be deployed to multiple operating systems.<br /><br />Fulfilling these technical requirements over and over again for each new application is expensive, superfluous, and boring. The NetBeans Platform gives developers a transparent, open source, extensible, and free framework that address all of these technical requirements. This book will guide you through all these topics and show you how you can apply the lessons learned in the context of a real application.<br /><br />The central driver of the book is the creation of a complete sample application, chapter by chapter, throughout the length of this book. You will learn how to apply the key concepts in your own work environment, so that you will be able to build flexible, reliable, robust and scalable Swing applications yourself. At the end of the book, you will be comfortable creating similar applications yourself and you will know what to do when you get stuck.</p>
Table of Contents (20 chapters)
NetBeans Platform 6.9 Developer's Guide
Credits
Foreword
About the Author
Acknowledgement
Preface
Index

Foreword

NetBeans RCP—Das Entwicklerheft, Jürgen's original German book about the NetBeans Platform, was published in August, 2008. What's happened with the NetBeans Platform since then? Well, quite a lot, actually! NetBeans Platform 6.9 has been released, sporting a large set of features which Jürgen might only have dreamed of while working on his book. Most significantly, the new NetBeans Platform support for integrating OSGi bundles needs mentioning in this regard. Apart from that, there are many other new features, including new and changed APIs, which to a greater or lesser extent have an impact on the text and the code that the original book provided. Wherever relevant, and always as seamlessly as possible, these new features have been introduced into this translated and updated version.

The spirit of Jürgen's original book remains intact: this is not a complete reference guide to each and every detail that the NetBeans Platform provides Java desktop developers. For those purposes, "The Definitive Guide to the NetBeans Platform" (Apress) and "Rich Client Programming: Plugging into the NetBeans Platform" (Prentice Hall) continue to be the best sources, together with the many NetBeans Platform tutorials (http://platform.netbeans.org/tutorials), of course. However, after reading those books and documents, many readers have asked themselves: "OK, that's all very interesting, but how do I get started?" That's what this book is all about, taking you by the hand and showing you many aspects of the NetBeans Platform in step-by-step instructions, within one coherent whole.

Because of this approach, some readers may feel somewhat disappointed. For example, Maven-based applications are not addressed at all in this book, simply because that was not relevant to the particular application that Jürgen set about to create. And, most topics in this book could deserve more pages, more explanation, and deeper analysis. However, a balance had to be made between providing a practical guide to the newbie, which this book tries to do, and providing a complete and thorough reference guide, various forms of which already exist. Hopefully the reader will forgive us for any errors made in this balancing act.

The NetBeans Platform community pitched in and translated this book together. The translation team was as follows: Jean-Marc Borer, Zane Cahill, Costantino Cerbo, Stefan Alexander Flemming, Michael Holste, Peti Horozoglu, Martin Klähn, Victor Ott, Christian Enrique Portilla Pauca, Christian Pervoelz, Sven Reimers, Peter Rogge, Johannes Strassmayr, Florian Vogler, and Fionn Ziegler. Many thanks for their enthusiasm and hard work! I recommend them all as translators.

Many thanks also to the many reviewers, in particular Jaroslav Tulach, Anton Epple, and Tom Wheeler. In fact, in the Pantheon of NetBeans, Tom Wheeler is at least a minor deity on the order of Eos.

From the team at Packt, many people deserve praise and thanks. In particular, Prasad Rai and Douglas Paterson, for making this book possible, as well as Rakesh Shejwal and Gauri Iyer, for their endless patience and support.

Happy reading and learning about the NetBeans Platform!

Geertjan Wielenga

Technical Trainer & Writer

NetBeans