I am able to break this problem down into two questions:
- What is the best way to put the contents of a database (MS-Access) into a
GlazedList
/JTable
? - How do I make sure any changes made to the
GlazedList
/JTable
are reflected on the database (MS-Access)?
Here are the things I know:
- I know how to retrieve/manipulate the information from a database using the JDBC method.
- I know that
GlazedList
's require reflection so I would need to make a class that contains every column/field in the database. This is not very expandable...
What is the best way to go about this problem?
edit:// I have managed to create a class generator. It takes the column headings and creates an instance field. This should resolve the #2 http://pastebin.ca/1770996 - It creates the class but I do not think I used reflection correctly... edit2:// Edited my code from above so it works... http://pastebin.ca/1776722