Skip to content

Instantly share code, notes, and snippets.

@Grumblesaur
Created April 24, 2016 03:36
Show Gist options
  • Save Grumblesaur/1505b5eeedadb05fdfc18d83a4aa07d7 to your computer and use it in GitHub Desktop.
Save Grumblesaur/1505b5eeedadb05fdfc18d83a4aa07d7 to your computer and use it in GitHub Desktop.
while(dataForSession.next()) {
Object data[] = new Object[colNames.length];
for (int i = 0; i < data.length; i++) {
data[i] = dataForSession.getObject(i+1);
//JOptionPane.showMessageDialog(null, data[i], "Database Column", JOptionPane.INFORMATION_MESSAGE);
rows.add(data[i]); // this line of code breaks everything
}
model.addRow(data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment