import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.SwingUtilities;
import com.aesthete.swingobjects.ui.common.table.Column;
import com.aesthete.swingobjects.ui.common.table.SwingObjectsTable;
import com.aesthete.swingobjects.ui.common.table.CsmartTableHelper;
public class Test {
public static void main(String[] args) {
SwingObjectsTable table=new SwingObjectsTable();
table.setColumns(new Column[] {
new Column("string", String.class, false),
new Column("int",Integer.class,false)});
table.initTable();
CsmartTableHelper helper=new CsmartTableHelper();
helper.addRow("1342134",1);
table.setData(helper.getRows());
final JFrame frame=new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setContentPane(new JScrollPane(table));
SwingUtilities.invokeLater(new Runnable() {
public void run() {
frame.pack();
frame.setVisible(true);
}
});
}
}