A simple library to fill your JTables fast. https://malindawmd.github.io/JTableFiller/
Sample usage,
- Add library
- Add a JTable to your frame
- Call
fillTable([ResultSet],[JTable model],[Column names],[Column indices]);
method
ResultSet rs = ...;
JTableFiller filler = new JTableFiller();
filler.filTable(rs,[JTable.getModel],null, null);
ResultSet rs = ...;
JTableFiller filler = new JTableFiller();
String[] names = {"Window ID","Title","Label"};
filler.filTable(rs,[JTable.getModel],names, null);
ResultSet rs = ...;
JTableFiller filler = new JTableFiller();
int[] indices = {0,1};
filler.filTable(rs,[JTable.getModel],null, indices);
ResultSet rs = ...;
JTableFiller filler = new JTableFiller();
String[] names = {"Window ID","Title"};
int[] indices = {0,1};
filler.filTable(rs,[JTable.getModel],names, indices);
Thats it.