This shows you how to build an applet using an existing JavaBean. The applet allows you to enter any select statement and retrieve the results of the query.
The JavaBean executes the select statement and displays the results in a table. You provide the connect string, username and password, and use the JavaBean to produce the result. You are unaware of the JavaBean complexity of the connection and retrival from the database.