//SimpleTableFrame.java
//Demo the simple usage of JTable
import javax.swing.*;
import javax.swing.table.*;
public class SimpleTableFrame extends JFrame {
JTable table;
public SimpleTableFrame() {
AbstractTableModel dataModel = new AbstractTableModel() {
public int getColumnCount() { return 10; }
public int getRowCount() { return 10;}
public Object getValueAt(int row, int col) { return new Integer(row*col); }
};