Write a Java JDBC application that allows the user to type a select query for our parts and suppliers database and have it generate an HTML table or a Swing GUI JTable. You don't have to do both of these, just pick one.
System.in) and can span
multiple lines
for long queries. Assume that a semicolon at the end of a line
ends the query.
JTable the table should display on the screen
and be nicely formatted with column headers, etc.
For example, the following should pop up a JTable on the display.
java Main < input.sql
System.out)
so that it can be redirected to a file that I can then open in the browser.
For example, the following should work:
java Main < input.sql > output.html; firefox output.html
Main.