How to get
1. the names of databases in a MySQL server
2. the names of tables in the database
3. types and names of fields in a table
all using JDBC in Java code. I need the information to create a dynamic form that changes according to the tables and fields.