FEST

Update EDT-related threading rules in ComponentFixture's Javadocs

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: FEST-Swing 1.2a2
  • Fix Version/s: FEST-Swing 1.2a3
  • Component/s: Swing
  • Labels:
    None
  • Environment:
    Ubuntu 9 and Eclipse 3.4
  • Number of attachments :
    0

Description

Hey Guys,

I have used FEST-Swing for a month, and I only bumped in to the Error Dialog that says "'Query should be executed in the event dispatch thread' for several (<10) times, as I read online that if we are using FEST-Swing, it's already thread safe, I didn't pay much attention to that.

But right now, another guy in our team started to use FEST with Ubuntu 9 and Eclipse 3.4, but he kept getting this problem as follows:

===========================
org.fest.swing.exception.ActionFailedException: Query should be executed in the event dispatch thread
at
org.fest.swing.exception.ActionFailedException.actionFailure(ActionFailedException.java:33)
at org.fest.swing.edt.GuiQuery.run(GuiQuery.java:40)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
at
com.iwprint.ppm4.core.InactivityTrackingSystemEventQueue.dispatchEvent(InactivityTrackingSystemEventQueue.java:59)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
=============
So, I am wondering whether we have something to do to get rid of this?

Thanks,

Kwen

-----------------------------------------------------------------------------------
Hi Kwen,

You only GuiActionRunner if you use Swing components directly, for example: textField.setText("Hello"). GuiActionRunner is not necessary if you use FEST's API.

I'm in the middle of writing a post that summarizes when and how we should use GuiActionRunner

Regards,

Alex

Activity

Hide
Alex Ruiz added a comment -

Updated issue's summary to reflect the purpose of this task.

Show
Alex Ruiz added a comment - Updated issue's summary to reflect the purpose of this task.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: