A Directory Viewer Applet

This section provides a simple example of an applet for displaying entries and attributes in the sample directory on the CD-ROM that accompanies this book. This rudimentary example is presented here mainly to explain how to set up applets; more full-featured examples are provided in subsequent chapters of this book.

A Simple Example for Java Plug-In Software

The DirBrowser class, a simple applet, uses a JTree component to display the entriesin the directory hierarchy and a JTextArea component to display the attributes of theselected entry. The JTree and JTextArea components are in a JSplitPane component.

Each node or leaf in the tree represents an LDAP entry in the directory. When the user selects a node, the applet ...

Get LDAP Programming with Java™ now with O’Reilly online learning.

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