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

Creating a helpset


In this section, you are shown how to create a helpset for dealing with tasks in the sample application. If JavaHelp is invoked for a TaskNode (when the user clicks F1 while a TaskNode is selected), a help topic appears to define to the user what a task is.

To get started, you need to create a helpset in the Overview module, as this is the module that contains the TaskNode class, which is the class that you need to document.

  • Right-click the Overview module and choose New | Other | Module Development | JavaHelp Help Set. Click Next.

  • The JavaHelp Help Set wizard is shown, which you use to create a new helpset as shown in the following screenshot:

When you click Finish in the preceding wizard, the following files are created in a directory named after the code name base, appended by "docs":

  • The file moduleName-about.html is a template for your first help page and is automatically registered in the map file, the table of contents file, and the index file.

  • The file moduleName-map...