I'm trying to override the process()
method to ensure that some code runs in the EDT. I have made sure that <T,V>
are matching throughout but it still won't let me override. Here is my code:
final SwingWorker<ArrayList<Block>,Integer[]> swingSlaveLabourer = new SwingWorker<ArrayList<Block>, Integer[]>() {
@Override
protected ArrayList<Block> doInBackground() throws Exception {
blockList.doHeavyWork()..
Integer [] status = new Integer[2];
status[0] = 1;
status[1] = 0;
this.process(status);
return blockList;
}
@Override //wont allow override
protected void process (Integer[] chunks){
progressBar.setValue(chunks[0]);
}
};