Skip to content

MalindaWMD/JTableFiller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JTableFiller

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);

Imgur

  • Fill with custom column names

	ResultSet rs = ...;
	JTableFiller filler = new JTableFiller();
	String[] names = {"Window ID","Title","Label"};
	filler.filTable(rs,[JTable.getModel],names, null);

Image

  • Fill with custom column index

	ResultSet rs = ...;
	JTableFiller filler = new JTableFiller();
	int[] indices = {0,1};
	filler.filTable(rs,[JTable.getModel],null, indices);

Imgur

  • Fill with custom column names and indices

	ResultSet rs = ...;
	JTableFiller filler = new JTableFiller();
	String[] names = {"Window ID","Title"};
	int[] indices = {0,1};
	filler.filTable(rs,[JTable.getModel],names, indices);

Imgur

Thats it.

About

Simple java library to fill JTables fast

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages