[SWINGX-1370] Add invokeLater and invokeAndWait that allow return values Created: 16/Nov/10  Updated: 28/Jan/11  Resolved: 16/Nov/10

Status: Resolved
Project: swingx
Component/s: Util
Affects Version/s: 1.6.3
Fix Version/s: 1.6.3

Type: Improvement Priority: Major
Reporter: Karl Schaefer Assignee: Karl Schaefer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: All
Platform: All
URL: http://www.java.net/blog/kschaefe/archive/2010/11/15/returns-values-swingutilitiesinvoke

Issuezilla Id: 1,370


I have some code for returning values from the EDT with both invokeLater and
invokeAndWait. Adding an issue, so that we can track the addition to the

Comment by Karl Schaefer [ 16/Nov/10 ]

Issue 1370: Added invokeLater and invokeAndWait that support return values.


Committed revision 3886.

Comment by kleopatra [ 16/Nov/10 ]

Hi Karl,

do you see any way to test this?


Comment by Karl Schaefer [ 16/Nov/10 ]

I have a couple of methods locally, but I'm not sure that consistant enough to
add. They confirm that it is running correctly, but I get spurious failures
due to delays in threads running (that can be caused by the machine and not the
test case). So, yes, they're tested, but I'm not sure what best way to add
those to the test base and have them consistantly do the right thing.

Comment by kleopatra [ 16/Nov/10 ]

how about adding them nonetheless - if they turn out to be problematic then we
can rename the test class to xIssues and comment why. That way we'll know they
are tested that there might be problems.


Generated at Mon May 01 05:23:41 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.