Tables in Java
This program was generated with very little code. All we did was set up a JTable object with a String[][] argument for the table data and a String[] argument for the table’s headers. Rather than adding the table itself directly to our window, we enclose it in a scrollpane:
here the code:
// SimpleTable.java
// A test [...]

