public class JVxTableTest extends JFrame { public static void main(String[] pArgs) throws Throwable { new JVxTableTest(); } JVxTableTest() throws Throwable { //-------------------------------- // Data //-------------------------------- MemDataBook mdbData = new MemDataBook(); mdbData.setName("person"); mdbData.getRowDefinition().addColumnDefinition(new ColumnDefinition("FIRSTNAME")); mdbData.getRowDefinition().addColumnDefinition(new ColumnDefinition("LASTNAME")); mdbData.getRowDefinition().addColumnDefinition(new ColumnDefinition("PHONE")); mdbData.open(); mdbData.insert(true); mdbData.setValues(new String[] {"FIRSTNAME", "LASTNAME", "PHONE"}, new String[] {"JVx", "rocks", "+43 000 / 1234 567"}); mdbData.saveAllRows(); //-------------------------------- // Swing //-------------------------------- JVxTable table = new JVxTable(); table.setDataBook(mdbData); setLayout(new BorderLayout()); add(table, BorderLayout.CENTER); setPreferredSize(new Dimension(500, 400)); pack(); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); } } // JVxTableTest