import java.util.HashSet;
import java.util.Set;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.table.DefaultTableModel;
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
/**
*
* @author noone
*/
public class TestJTable {
public static void main(String[] args){
DefaultTableModel tm = new DefaultTableModel(new Object[]{"column A", "column B" ,"column C"}, 10);
tm.insertRow(0, new Object[]{1, "testb", "test1c"});
tm.insertRow(1, new Object[]{"", "testb", "test1c"});
tm.insertRow(2, new Object[]{"", "testb", "test1c"});
tm.insertRow(3, new Object[]{2, "testb", "test2c"});
tm.insertRow(4, new Object[]{"", "testb", "test2c"});
tm.insertRow(5, new Object[]{"", "testb", "test2c"});
tm.insertRow(6, new Object[]{"", "testb", "test2c"});
tm.insertRow(7, new Object[]{3, "testb", "test3c"});
tm.insertRow(8, new Object[]{"", "testb", "test3c"});
ConversationsTable table = new ConversationsTable(tm);
JFrame frame = new JFrame();
frame.setSize(800, 600);
frame.add(new JScrollPane(table));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}