A
azzamqazi
Hi,
I was wondering if someone can help me out here please. I am creating a
JTable and displaying it in a window but it gives me Array Out Of
Bounds Exception. The code is as follows
Object[][] data = {
{"j"},
{"j"},
{"j"},
{"j"},
{"j"},
{"j"},{"j"},{"j"},{"j"},{"j"},{"j"} };
String[] columnNames = {"a",
"a","a","a","a","a","a","a","a","a","a"};
JTable table = new JTable(data,columnNames);
JScrollPane scrollPane = new JScrollPane(table);
Thanks a lot for help!!!>
I was wondering if someone can help me out here please. I am creating a
JTable and displaying it in a window but it gives me Array Out Of
Bounds Exception. The code is as follows
Object[][] data = {
{"j"},
{"j"},
{"j"},
{"j"},
{"j"},
{"j"},{"j"},{"j"},{"j"},{"j"},{"j"} };
String[] columnNames = {"a",
"a","a","a","a","a","a","a","a","a","a"};
JTable table = new JTable(data,columnNames);
JScrollPane scrollPane = new JScrollPane(table);
Thanks a lot for help!!!>