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, ...
Get LDAP Programming with Java™ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.