Note
The applet in this sample uses a COM component. COM components
can access any system resource. To prevent this from being
a major security problem, typically, the browser allows only
trusted Java™ .CLASS files to access COM objects.
To facilitate development of Java applets that use COM,
Microsoft® Developer Studio relaxes this restriction
when the browser is run from within Developer Studio. This page will
not be able to access the COM resources it
needs to run, unless it is run from Microsoft Developer
Studio.
To run this applet from Microsoft Developer Studio:
- In Developer Studio, open the project for this Java applet.
- From the Build menu, choose Execute or Debug Run.
See the readme for information on
setup, purpose, errors, and so forth.
This sample displays employee information. To the right is
a Java applet; to the left an outline control. When an employee
record is found, the form in the applet is filled with
information from the database. The outline control is filled
with a list of that employee's direct reports, that is those
employees that list the "current employee" as their manager.
Click the + sign to expand the outline.
You can find information on an
employee in one of three ways:
- Type the employee's email name in the Email text field
and click the Find By Email button to find the record
for that email name. The applet starts by displaying the
record for chrisb.
- When an employee's record is displayed, click the Look Up Manager
button to find the record for that current employee's manager.
- When an employee's record is displayed, select one of the direct reports
in the outline control to the right and click the Find
Selection button to find the record for the selected employee.
The source.