Questions tagged as 'swingworker'

1
answer

Methods that require return even though Void in the "signature"

I'm doing some tests to understand in practice how the class works SwingWorker in% of%, and I noticed that the swing method requires doInBackground return, even starting the variable of the form below: SwingWorker<Voi...
asked by 21.03.2016 / 16:34
1
answer

Passing optional arguments in Java

I'm trying to learn how the class works SwingWorker<T,V> , I have already done another question regarding one of his methods. Looking at the source code of this class, I found the publish() method written as follows:...
asked by 22.03.2016 / 23:17
1
answer

Use of Swingworker in connection with standalone bank

I have an application in java that I did in my work, to control the sequence of numbering of trades, the same is in jar format in the network (I did using swing in java + HSQLDB). One problem that is not critical, but a little annoying, is th...
asked by 18.08.2015 / 12:28
1
answer

Pass the execution of a given method to the SwingWorker as an argument

I have a small application in swing , where I would like to display a progress when certain actions are executed As an example, I have the listener below that is executed when a JComboBox is changed. It takes the selected...
asked by 28.03.2016 / 15:36
1
answer

Update JTable after each change of data in a cell

I'm using java
asked by 20.03.2016 / 18:58
0
answers

Java slowness warning

How to check that a method is taking a long time to be finalized and to display a warning to the user. There is a method in the application that can take a while ... I made a test code to detect the slowness of a method and to show a warning...
asked by 08.08.2018 / 21:47
1
answer

How to use JProgressBar in ArrayList comparison classes?

I have a class that compares two ArrayList , one with user-added information and one with database query. After the query is done, I send this object to another class that performs writing that data to a file. I would like for as long a...
asked by 17.05.2016 / 13:33
1
answer

Capturing exceptions in the execution of the swingworker

I'm using SwingWorker to execute a method that can throw exceptions. Even forcing, the exception is not caught by try-catch . How can I resolve this? try { (new SwingWorker < Void, Void > () { @Override protec...
asked by 23.04.2016 / 01:10
0
answers

Unexpected return when converting String to Integer in Java

I have a java code in which it receives motor rotation data. In Java with I get a String I need to convert to Integer to make a comparison to know if the engine has switched on or not. When I receive the string I give print on the screen and the...
asked by 03.10.2017 / 23:00