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 valueGuiTask, for performing actions in the EDT that do not return a valueGuiActionRunner, executes aGuiQueryorGuiTaskin the EDT, re-throwing any exceptions thrown when executing any GUI action in the EDT.
Examples:
The following examples demonstrate how to access GUI components in the EDT using FEST-Swing.
1. Reading the text of a JLabel:
2. Setting the text of a JLabel:
Labels: