aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Is it feasible to use Jtable for displaying Streaming Content? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Is it feasible to use Jtable for displaying Streaming Content?" Watch "Is it feasible to use Jtable for displaying Streaming Content?" New topic
Author

Is it feasible to use Jtable for displaying Streaming Content?

Preeethi Jainnn
Greenhorn

Joined: Aug 01, 2007
Posts: 1
I have a requirement where i need to display Streaming Data like Bid , Ask , Last , Change values for the Stock Quote Symbols recievied from a third party server in a Grid .

For this can i use a Jtable as the Data would be chnaging continously ??

Please share your views , thanks in advance

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19784
    
  20

You can, but you need to take into account Concurrency in Swing. In other words, reading the stream should be done in a background thread and the updates on the Event Dispatcher Thread. A SwingWorker could help out here, with doInBackground doing the hard work, calling publish as needed. You can then override process to insert data into the table.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it feasible to use Jtable for displaying Streaming Content?