john s murray
posted 7 years ago
hi, need help in pointing to the right direction. writting a swing app using netbeans. the apps starts a single runnable thread (thread 1) and retrieves some URL and updates the (DefaultTableModel)jTable1.getModel().addRow() just fine. i moved retrieval of the URL into another Runnable class (static class getURL implementes Runnable_. i'm able to run multiple concurrent threads from "thread 1". however, i'm no longer able to update the results from the getURL class. it giving me "non-static variable jTable1 cannot be referenced from a static context". obviously i'm missing... please let me know how to go about updating with the getURL results.