920 questions
1
vote
0
answers
115
views
SwingWorker#done not consistently invoked, likely blocked by modal
I'm currently moving our app's IO to SwingWorker. Typically, it works fine. But sometimes, however, SwingWorker#done is not invoked even though the operation is complete. Important: SwingWorker#done ...
0
votes
0
answers
68
views
How can I make sure my Java code is thread safe
I am trying to use SwingWorkers in my application (written in Java) where I collect some data from an API and display it in the app's GUI. Please keep in mind that I am very unsure when it comes to ...
0
votes
2
answers
75
views
using swingworker when copying files recursively
I'm having trouble getting swingworker to work when copying files recursively. No matter what I do, my progress bar doesn't update until after all the files are copied. The direction I chose to do is ...
0
votes
0
answers
76
views
How to use SwingWorker with Java Sorting classes e.g. Bubble Sort [duplicate]
I am trying to create a Java Sorting Visualizer using SwingWorker to run the sorting algorithm step by step in a separate thread, and publish intermediate states to update the UI (I am going to say ...
0
votes
2
answers
179
views
How to chain multiple SwingWorkers
I've got a big background task with some intermediate points where a user input is required.
E.g. buttonLoad_actionPerformed --> load, verify validity --> if outdated, ask user whether to update....
0
votes
1
answer
140
views
How to deal with concurrency in Java EDT and background worker thread?
I am making a Java Swing application. Here is a simplified program logic:
public class Data
{
//Data.
}
public class CustomPanel extends JPanel implements MouseListener
{
private Data ...
0
votes
0
answers
25
views
Posting doInBackGround Results to Jtable
I'm working on a Java Network Application in Eclipse, already plenty of detail, and the app functionality is to perform an ip scan of the network and a port scan of a particular ip address. here's the ...
-1
votes
1
answer
80
views
Java Swing JButton disable not giving disired results
This is my first time working with Java Swing, so apologies for missing a lot context. This is using Netbeans 7.0.x--business rational. Code is generated using the "Design" feature in ...
0
votes
1
answer
99
views
Java Swing doInBackground, stopping program, and update GUI
I'm new to Java Swing, and I need to make some simple Java desktop app.
I have MainPanel in which I have SwingWorker with doInBackgroung in which I call service which calls a DAO that make a quering ...
0
votes
1
answer
65
views
How to use Swingworker do to run cod in a background thread
I have a program that runs a given test and shows the results using GUI. I need from the program to not freeze when I run a long test.
I do all the tests in tester class that starts when we press the ...
0
votes
0
answers
72
views
Parallelizing HTTP Requests in Java
I developed a GUI, which connects to a server and fetches data on push of a button. The GUI is made in Swing.
For the requests, I have a specific class, which I cannot change. This class implements ...
0
votes
0
answers
100
views
Mismatch between javax.swing.ProgressMonitor and SwingWorker.setProgress
Class javax.swing.ProgressMonitor provides method setMaximum(int max) which is documented as
Specifies the maximum value.
However, SwingWorker<Void, Void>.setProgress(int progres) is ...
1
vote
2
answers
120
views
Separating Swingworker Functions into different Classes Java
I am trying to code a sorting algorithm visualizer. I put almost everything into one class called visualizer and I was wondering how I can move my "insertionSort" and "bubbleSort" ...
0
votes
1
answer
90
views
Why does my JFrame open after a for loop?
I am creating a Java program using Swing and want to open a JFrame, run a for-loop that stores items in a list of Strings, display graphics while that is happening, and only after that is done call ...
0
votes
2
answers
160
views
Java Swing Wait message will not show up
I have a Java3D scenegraph update task which takes 3-4 seconds on my laptop to complete. During this time I want a window showing up, asking the user to wait until the job completes. I have a simelar ...