Most voted "swingworker" questions
Swingworker is an abstract class that abstracts the threading complexities of the developer into Swing applications and is very useful in modeling tasks that have to perform time-consuming background work that should not lock the graphical interface while being realized.
Learn more…9 questions
Sort by count of
-
6
votes1
answer666
viewsPassing optional arguments in Java
I’m trying to learn how to run the class SwingWorker<T,V>, I’ve even done another question regarding one of its methods. Looking at the source code of this class, I found the method publish()…
-
5
votes1
answer186
viewsMethods that require return even having Void in "signature"
I am doing some tests to understand in practice the functioning of the classSwingWorker in the swing, and I noticed that the method doInBackground demands a return null, even starting the form…
-
3
votes1
answer498
viewsPass the execution of a particular method to Swingworker as argument
I have a small application on swing, where I would like to display progress when certain actions are executed As an example, I have the listener below that is run when a JComboBox is changed. It…
-
1
votes1
answer135
viewsUse of Swingworker in connection with standalone bench
I have an application in java that I made in my work, to control sequence numbering of crafts, the same is in jar format in the network (I made using swing in java + HSQLDB). One problem that wasn’t…
-
1
votes1
answer164
viewsUnexpected return when converting String to Integer in Java
I have a java code in which you receive engine speed data. In java with I get a String I need to convert to integer to make a comparison to know if the engine started or not. When I get the string I…
-
1
votes1
answer3495
viewsUpdate Jtable after each data change in a cell
I’m using java swing where I have a window and in it a JTable. I run a method where you will read the data from this Jtable and update a column, cell by cell, of this Jtable. The problem is that it…
-
0
votes1
answer108
viewsCapture exceptions in swingworker execution
I’m using SwingWorker to execute a method that can throw exceptions. Even forcing, the exception is not captured by Try-catch. How can I solve this case? try { (new SwingWorker < Void, Void >…
java swing exception swingworker event-dispatch-threadasked 8 years, 8 months ago Lucas Alcântara 411 -
0
votes1
answer228
viewsHow to use Jprogressbar in Arraylist comparison classes?
I have a class that compares two ArrayList, one with information added by the user and the other with database query. After the query is done, I send this object to another class that performs the…
-
-1
votes1
answer76
viewsHow to update Jtextarea in each loop iteration with Swingworker?
I have a class that inherits from SwingWorker and I’m getting information from a file .txt and playing for the JTextArea, and would like to go running update of JTextArea while the loop is running,…