SwingWorker with ExecutionService and shared object

i have been struggling for hours trying to figure out one of the requirements of a laboratory exercise.

Program summary

A class PrimeSeekerTask generates prime numbers between a range.

PrimeSeekerDisplay is a class that displays the work done in PrimeSeekerTask.

PrimeSeekerTask is is supposed to do the "heavy" computation in the background. I am required to extend SwingWorker for the PrimeSeekerTask.

During program run, there should be multiple instances of PrimeSeekerTask that does a small part of the computation. I am required to use ExecutionService

In addition, the program should start when...

Read More »

By: StackOverFlow - 5 days ago

Related Posts