Top "Swingworker" questions

When a Swing program needs to execute a long-running task, it usually uses one of the worker threads, also known as the background threads.

Prevent Swing GUI locking up during a background task

I have a swing application which stores a list of objects. When the users clicks a button, I want to …

java multithreading swing swingworker event-dispatch-thread
How to use the Progress Bar in Java (Netbeans GUI)

I am not too experienced with Java and am having trouble getting a progress bar to work. I am using …

java netbeans progress-bar swingworker swingx
jProgressBar update from SwingWorker

I use to monitor a long running task by updating a ProgressBar. The long running task is of course performed …

java swing progress-bar swingworker
Turn-based Game Design: Event-Driven vs. Game Loop

I am creating my first game in Java. The game is Monopoly. I am struggling with how I should design …

java events swingworker event-driven-design
setvisible method in java swing hangs system

I have banking gui application that I am currently working on and there seems to be a problem with the …

java swing visibility swingworker
Handling the cause of an ExecutionException

Suppose I have a class defining a big block of work to be done, that can produce several checked Exceptions. …

java swingworker executionexception
Wait for SwingWorker to finish

I want to wait for my SwingWorker to finish working, and then I want to execute another SwingWorker. In this …

java multithreading swing concurrency swingworker
Can't get ArrayIndexOutOfBoundsException from Future<?> and SwingWorker if thread starts Executor

I play with multitreading for SwingWorker by using Executor, and I'm there by mistake identified wrong elements from the Vector, …

java swing exception-handling vector swingworker
How can I pass arguments into SwingWorker?

I'm trying to implement Swing worker in my GUI. At the moment I have a JFrame containing a button. When …

java swing argument-passing swingworker
How should I handle exceptions when using SwingWorker?

I use SwingWorker in Java 6 to avoid running long-running code on the event dispatch thread. If the call to get() …

java swing swingworker