• Post Reply Bookmark Topic Watch Topic
  • New Topic

swing and threads  RSS feed

 
john s murray
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
john s murray
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nevermind.. i found the bug.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!