FileDocCategorySizeDatePackage
MarketTable.javaAPI DocExample887Thu Oct 24 20:14:24 BST 2002None

MarketTable

public class MarketTable extends JFrame

Fields Summary
Constructors Summary
public MarketTable()

    super("Dynamic Data Test");
    setSize(300, 200);
    setDefaultCloseOperation(EXIT_ON_CLOSE);

    // Set up our table model with a 5-second polling delay
    MarketDataModel mdm = new MarketDataModel(5);

    // Pick which stocks we want to watch . . .
    mdm.setStocks(new int[] { 0, 1, 2 });

    // And pop up the table
    JTable jt = new JTable(mdm);
    JScrollPane jsp = new JScrollPane(jt);
    getContentPane().add(jsp, BorderLayout.CENTER);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    MarketTable mt = new MarketTable();
    mt.setVisible(true);