O'Reilly logo

LDAP Programming with Java™ by Tony Dahbura, Rob Weltman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Graphical LDAP JavaBeans

Now that we've investigated typical properties of an LDAP JavaBean, we can take a look at graphical components that can be plugged into a graphical user interface (GUI).

A Directory Browser

A component that displays the contents of a directory as a tree can be useful in many ways. It could be used simply to explore the directory. It could be invoked as a pop-up in places in an application where a user must enter a DN. Later in this chapter we'll hook it up to a table component to make a simple directory explorer, similar to Windows Explorer.

To simplify use of the Bean in a JFC (Java Foundation Classes) environment, we'll have it extend javax.swing.JPanel.

The TreePanel Bean (Figure 10-6) uses several utility classes, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required