This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 19684
    
  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?