FileDocCategorySizeDatePackage
MarketTable.javaAPI DocExample806Mon Nov 09 12:45:50 GMT 1998None

MarketTable

public class MarketTable extends JFrame

Fields Summary
Constructors Summary
public MarketTable()

    super("Dynamic Data Test");
    setSize(300, 200);
    addWindowListener(new BasicWindowMonitor());

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