FileDocCategorySizeDatePackage
SimpleTable.javaAPI DocExample681Thu Oct 24 20:14:24 BST 2002None

SimpleTable

public class SimpleTable extends JFrame

Fields Summary
Constructors Summary
public SimpleTable()

    super("Simple JTable Test");
    setSize(300, 200);
    setDefaultCloseOperation(EXIT_ON_CLOSE);

    JTable jt = new JTable(new String[][] { {"This", "is"}, {"a", "Test"} },
                           new String[] {"Column", "Header"});
    JScrollPane jsp = new JScrollPane(jt);
    getContentPane().add(jsp, BorderLayout.CENTER);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    SimpleTable st = new SimpleTable();
    st.setVisible(true);