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.