def setValueAt(self, value, row, col):
   if 3 == col:
     old = self.getValueAt(row, col)
     if old == value:
       return
     # else, update value in the underlying data structure
     accepted[row] = value
     # ... and save the evaluation CSV file in a new thread
     # to avoid potentially slow operations in the event dispatch thread
     t = Thread(writeAccepted)
     t.setPriority(Thread.NORM_PRIORITY)
     t.start()
Exemple #2
0
 def newThread(self, runnable):
     title = "%s-%i" % (self.name, self.counter.incrementAndGet())
     t = Thread(self.group, runnable, title)
     t.setPriority(Thread.NORM_PRIORITY)
     return t