Ho il seguente codice:

String[] columnNames = {"First Name", "Last Name",
"Sport",
"# of Years",
"Vegetarian"};

Object[][] data = {
{"Mary", "Campione",
"Snowboarding", new Integer(5), new Boolean(false)},
{"Alison", "Huml",
"Rowing", new Integer(3), new Boolean(true)},
{"Kathy", "Walrath",
"Knitting", new Integer(2), new Boolean(false)},
{"Sharon", "Zakhour",
"Speed reading", new Integer(20), new Boolean(true)},
{"Philip", "Milne",
"Pool", new Integer(10), new Boolean(false)}
};


table = new JTable(data,columnNames);

JScrollPane scroller=new JScrollPane(table);
Container c=getContentPane();
//c.remove(0);
c.add(scroller,BorderLayout.CENTER);
c.validate();

la JTable rimane vuota...qualcuno potrebbe gentilmente aiutarmi?

tulipan