FEST-Swing performs all access to Swing components in the EDT. FEST-Swing also exposes a convenient mechanism to access Swing components in the EDT from your test code. This mechanism involves three classes:
GuiQuery, for performing actions in the EDT that return a value
GuiTask, for performing actions in the EDT that do not return a value
GuiActionRunner, executes a
GuiTaskin the EDT, re-throwing any exceptions thrown when executing any GUI action in the EDT.
The following examples demonstrate how to access GUI components in the EDT using FEST-Swing.
1. Reading the text of a
2. Setting the text of a JLabel: