FileDocCategorySizeDatePackage
SimpleTable.javaAPI DocExample716Mon Nov 09 12:45:48 GMT 1998None

SimpleTable

public class SimpleTable extends JFrame

Fields Summary
Constructors Summary
public SimpleTable()

    super("Simple JTable Test");
    setSize(300, 200);
    addWindowListener(new BasicWindowMonitor());

    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);