C H A P T E R  15

Tips and Tricks

In this chapter, you will learn about some helpful features concerning the user interface of the NetBeans Platform. This chapter deals with desktop integration, asynchronous initializing of GUI components, and the implementation of an undo and redo functionality.

Desktop Features

The Desktop class of the Java Platform allows execution of standard applications like an Internet browser or an e-mail client. Pass a File or URI object to the methods provided by the Desktop class. On the basis of these objects, an associated standard application can be launched. For example, if Desktop.open(new File("myfile.pdf")) is executed, Acrobat Reader is launched (if this is the standard application for .pdf files). Table ...

Get The Definitive Guide to NetBeans™ Platform 7 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.