I am looking to create a Java Table (swing), and import the information from a database table. I have created the columns with:
String[] columnNames = {"First Name",
"Last Name",
"Address",
"City ",
"Country",
"Birth_Date"};
From an example I was reading I needed the following:
Object[][] data = {???};
JTable table = new JTable(data, columnNames);
I was going to put in the name of a function (getTable) in the data array which just does a select* to get the info from the table. Is that correct? If so, what arguments would I need to pass into the getTable(), and what would my sql function need to return.

