Java tutorial
import java.util.Arrays; import java.util.Vector; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.JTable; public class Main { public static void main(String[] argv) { int rows = 10; int cols = 5; JTable table = new JTable(rows, cols); JFrame f = new JFrame(); f.setSize(300, 300); f.add(new JScrollPane(table)); f.setVisible(true); } }