posted 20 years ago
depending on where you want the table added, one of these lines is wrong
add(scrollPane);
JPanel1.add(table);
either
add(scrollPane); or
JPanel1.add(scrollpane);
but not both
it could even be this
JPanel1.add(scrollpane);
add(JPanel1);
here's a simple example program